Spoiler
Scriptname testAbility extends activemagiceffect
Event OnEffectStart (Actor akTarget, Actor akCaster)
debug.notification("ON")
EndEvent
Event OnEffectFinish (Actor akTarget, Actor akCaster)
debug.notification("OFF")
EndEvent
Scriptname testAbility extends activemagiceffect
Event OnEffectStart (Actor akTarget, Actor akCaster)
debug.notification("ON")
EndEvent
Event OnEffectFinish (Actor akTarget, Actor akCaster)
debug.notification("OFF")
EndEvent
the game handles everything correcly: the ability shows/hides in UI as expected, and the debug notification is correct.
But when I check if the magic effect is on the player with
game.getplayer().hasmagiceffect(myTestAbility), the game always return true.
what I am missing here...? The effect is still on the player even if it has finished? If yes, what is the correct method to check if it is active?
