minor optimization: instead of duplicating
PHP Code:
user_slap(victim, damage)
user_slap(victim, 0)
#if defined USE_FOUR_SLAPS
user_slap(victim, 0)
user_slap(victim, 0)
#endif
if ( cooldown > 0.0 ) sh_set_cooldown(attacker, cooldown)
sh_chat_message(victim, gHeroID, "You repelled an enemy!")
either move that to a function and call that function in the 2 spots or combine the 2 if statements
__________________
If at first you don't succeed, then skydiving isn't for you.