- Joined
- Dec 12, 2010
- Messages
- 2,074
We have common trigger for SPELL_EFFECT, which looks up for any spell and related events.
Lets say we use custom spell A. On cast, it created a dummy who orders spell B onto the target.
Guess what will we see in the end?
I didn't run THIS exact test, but recovering it from my tests on doto:
GetSpellTargetUnit lose it's value once other spell event fires. Unlike (at least I didn't notice any other natives to do so) any other, who keep it's value until the trigger's end, like cached.
That's definitely a bug?
JASS:
if GetSpellAbilityId()=='AbiA' then
endif
call BJDebugMsg("Spell casted, caster = "+GetUnitName(GetTriggerUnit())+"; target = "+GetUnitName(GetSpellTargetUnit()))
Lets say we use custom spell A. On cast, it created a dummy who orders spell B onto the target.
JASS:
call IssueTargetOrder(dummy,"slow",GetSpellTargetUnit())
Guess what will we see in the end?
I didn't run THIS exact test, but recovering it from my tests on doto:
JASS:
Spell casted, caster = Dummy, target = MyTarget
Spell casted, caster = MyCaster, target =
GetSpellTargetUnit lose it's value once other spell event fires. Unlike (at least I didn't notice any other natives to do so) any other, who keep it's value until the trigger's end, like cached.
That's definitely a bug?