event onPlayerSpellCast (server-side)
Available since version: 0.1.3
Note
Right now transformation and summon spells are not supported, despite this event will be triggered for them. Cancelling this event willl prevent this action to be synced to other players.
This event is triggered when player is casting some spell.
Parameters
int playerid, string|null instance, int spellLevel
intplayerid: the id of the player who casts the spell.string|nullinstance: the item instance from Daedalus scripts.intspellLevel: the level of charged spell