event
onSpellCast (client-side)
Note
Right now transformation and summon spells are not supported, despite this event will be triggered for them.
This event is triggered when hero is casting some spell.
Parameters
int id
int
id: the id of item used to cast spell.