Skip to content

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
  • int playerid: the id of the player whose casted spell.
  • int id: the id of item used to cast spell.