Skip to content

i think i found a bug on aid spell

DremorDremor Member Posts: 40
checkstate state_aid
and
spellcheck aid

do not work...

there is no difference when the target has spell active on itself or not...

i reused same code i used for barkskin, which works on barkskin... but on aid doesn't work...
aid also has no icon on portrait.

here is the code:

// CLERIC_AID SPPR201 - Player2
IF
ActionListEmpty()
Global("SPELLoff","LOCALS",0)
Global("BUFFoff","LOCALS",0)
OR(2)
Global("tempBUFFon","LOCALS",1)
Global("S1D","GLOBAL",1)
!GlobalTimerNotExpired("SCAST","LOCALS")
CheckStatLT(Myself,25,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_AID)
!CheckSpellState(Player2,AID)
!GlobalTimerNotExpired("AIDLOCK","GLOBAL")
THEN
RESPONSE #100
SetGlobalTimer("AIDLOCK","GLOBAL",6)
SetInterrupt(FALSE)
SetGlobalTimer("SCAST","LOCALS",6)
Spell(Player2,CLERIC_AID)
DisplayStringHead(Myself,12111) //Aid
SetInterrupt(TRUE)
END

----

i guess i could find a workaround making a global timer for each player with the max amount of second this spell lasts...

Comments

  • kjeronkjeron Member Posts: 2,368
    StateCheck(Myself,STATE_AID)
    properly detects the Aid spell.
    There is no portrait Icon for the Aid effect.
  • DremorDremor Member Posts: 40
    it works, finally !
    thanks...
Sign In or Register to comment.