event onPlayerSpellCast (client-side)
Available since version: 0.2.1
This event can be canceled
Right now transformation and summon spells are not supported, despite this event will be triggered for them.
Event can be cancelled only for hero and local npcs.
This event is triggered when player is casting a spell.
int playerid, int id
intplayerid: the id of the player whose casted spell.
intid: the id of item used to cast spell.