Skip to content

event onPlayerSpellCast (client-side)

Available since version: 0.2.1

This event can be canceled

Note

Right now transformation and summon spells are not supported, despite this event will be triggered for them.

Note

Event can be cancelled only for hero and local npcs.

This event is triggered when player is casting a spell.

Parameters

int playerid, int id
  • int playerid: the id of the player whose casted spell.
  • int id: the id of item used to cast spell.