event
onDamage (client-side)
This event can be canceled
This event is triggered when hero is damaged, by not player or npc.
Parameters
int damage, int flags
int
damage: a value representing the amount of health the player lost.int
flags: an flags representing the types of damage. For more information see damage flags