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, Item item
  • int playerid: the id of the player whose casted spell.
  • Item item: the item object. For more information see Item class.