Ignore power requirement for spell?
vanila4gorila opened this issue ยท 1 comments
Hello -
I am looking for assistance to see if there is a function to ignore the power/buff requirement for a spell to have the icon display given a certain set of conditions. Scenario I am looking for this on is to have a glacial spike precast icon:
#glacial spike precast
#if PreviousGCDSpell(frostbolt) and BuffStacks(icicles_buff) == 4 and BuffPresent(brain_freeze_buff) Spell(glacial_spike)
Currently this is not displaying because @ the time I only have 4 icicles and am unable to cast Glacial Spike until I have 5; but, given the first line, I will have 5 once that Frostbolt finishes so want to begin precasting it.
Any assistance would be much appreciated!
Trying to reproduce/investigate this with the following script:
Include(ovale_common)
Include(ovale_mage_spells)
SpellAddBuff(frostbolt icicles_buff=1)
AddIcon {
Spell(glacial_spike)
Spell(frostbolt)
}
What I would suspect, when I have 5 icicles, it would show glacial_spike. That works fine.
+++ Icon 1
Reset state with current time = 183828.596000
nextCast = 183828.596000
[3029] >>> Computing 'action' at time=183828.596000: Spell(glacial_spike)
[3029] evaluating action: Spell(199786)
Aura 205473 found on Player-1587-083E3365 with (183810.872, 183871.872)
Require aura 205473 with at least 5 stack(s) on player at time=183828.596000: passed
Has power 20000.000000 mana
Require 1.000000 mana at time=183828.596000: passed
Didn't find an existing cd in next, look for one in current
Call GetSpellCooldown which returned 0.000000, 0.000000, 1
It returned -0.100000, 0.000000
Spell cooldown is in the past
Cooldown of spell 199786 is 0.000000 + 0.000000
GetSpellCooldown returned 0.000000, 0.000000
Spell cooldown is in the past
Cooldown of spell 199786 is 0.000000 + 0.000000
[3029] Action 199786 is off cooldown.
[3029] start=183828.596000 atTime=183828.596000
[3029] Action 199786 can start at 183828.596000.
[3029] <<< 'action' returns [3029] (183828.596, inf)
[3046] >>> Computing 'action' at time=183828.596000: Spell(frostbolt)
[3046] evaluating action: Spell(116)
Didn't find an existing cd in next, look for one in current
Call GetSpellCooldown which returned 0.000000, 0.000000, 1
It returned -0.100000, 0.000000
Spell cooldown is in the past
Cooldown of spell 116 is 0.000000 + 0.000000
GetSpellCooldown returned 0.000000, 0.000000
Spell cooldown is in the past
Cooldown of spell 116 is 0.000000 + 0.000000
[3046] Action 116 is off cooldown.
[3046] start=183828.596000 atTime=183828.596000
[3046] Action 116 can start at 183828.596000.
[3046] <<< 'action' returns [3046] (183828.596, inf)
[4445] >>> Computing 'group' at time=183828.596000
[4445] group checking [3029]: (183828.596, inf) [3029]
[4445] group first best is [3029]: (183828.596, inf) [3029]
[4445] group checking [3046]: (183828.596, inf) [3046]
[4445] group best action 199786 remains (183828.596, inf)
[4445] <<< 'group' returns [3029] (183828.596, inf)
[3029] using cached result (age = 128/128)
GetAction: start=183828.596, id=199786
However, when having 5 icicles buff and while casting frostbolt, the RequireBuffHandler results FALSE and the aura.Stacks stays at 1.
+++ Icon 1
Reset state with current time = 183810.329000
Found cast 1 of spell Frostbolt (116), start = 183809.225, stop = 183810.888.
nextCast = 183810.888000 (waiting for spellcast)
Active spell Frostbolt (116) is being cast to Lesser Bulwark Construct (Creature-0-1465-1513-71-103402-00002AFA84), now=183810.329000, endCast=183810.888000
Apply spell 116 at 183809.225000 currentTime=183810.329000 nextCast=183810.888000 endCast=183810.888000 targetGUID=Creature-0-1465-1513-71-103402-00002AFA84
Didn't find an existing cd in next, look for one in current
Call GetSpellCooldown which returned 183809.151000, 1.247000, 1
GlobalCooldown is 183809, 1
It returned 183810.298000, 0.000000
Spell cooldown is in the past
Cooldown of spell 116 is 0.000000 + 0.000000
Spell cooldown is in the past
Cooldown of spell 116 is 0.000000 + 0.000000
Spell 116 has a base cooldown of 0.000000s.
Spell 116 cooldown info: start=0.000000, duration=0.000000, charges=(nil)
Aura 205473 found on Player-1587-083E3365 with (183807.56, 183868.56)
Aura 205473 is copied into simulator.
Aura 205473 gains 1 stack(s) to 1 because of spell 116.
Aura 205473 with duration 60 now ending at 183870.888
[3029] >>> Computing 'action' at time=183810.888000: Spell(glacial_spike)
[3029] evaluating action: Spell(199786)
Aura 205473 found on Player-1587-083E3365 with (183810.888, 183870.888)
Require aura 205473 with at least 5 stack(s) on player at time=183810.888000: FAILED
Spell ID '199786' is flagged as unusable.
[3029] Action 199786 not found.
[3029] <<< 'action' returns empty set
[3046] >>> Computing 'action' at time=183810.888000: Spell(frostbolt)
[3046] evaluating action: Spell(116)
Spell cooldown is in the past
Cooldown of spell 116 is 0.000000 + 0.000000
GetSpellCooldown returned 0.000000, 0.000000
Spell cooldown is in the past
Cooldown of spell 116 is 0.000000 + 0.000000
[3046] Action 116 is off cooldown.
[3046] start=183810.888000 atTime=183810.888000
[3046] Action 116 can start at 183810.888000.
[3046] <<< 'action' returns [3046] (183810.888, inf)
[4445] >>> Computing 'group' at time=183810.888000
[4445] group checking [3046]: (183810.888, inf) [3046]
[4445] group first best is [3046]: (183810.888, inf) [3046]
[4445] group best action 116 remains (183810.888, inf)
[4445] <<< 'group' returns [3046] (183810.888, inf)
[3046] using cached result (age = 64/64)
GetAction: start=183810.888, id=116