RuneHive-Game
Loading...
Searching...
No Matches
Package PlayerEvent

Functions

override fun handlePlayer (player:Player, other:Player)

Function Documentation

◆ handlePlayer()

override fun PlayerEvent.handlePlayer ( player:Player ,
other:Player  )

Definition at line 14 of file MagicOnPlayerEvent.kt.

14 : Player, other: Player) {
15 val combatSpell = CombatSpell.get(spell) ?: return
16 if (player.spellbook != combatSpell.spellbook) return
17
18 player.setSingleCast(combatSpell)
19
20 if (!player.combat.attack(other)) {
21 player.setSingleCast(null)
22 player.resetFace()
23 }
24 }