HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Aoe spell condition

02-02-2008, 05:11 PM#1
SkriK
Is there something like (marked the condition with >> and <<)
Trigger:
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
Ability - Ability being cast is equal to Warstomp
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
>>Unit is affected by spell<<
Collapse Then - Actions
Game - Display to (All players) for 1.00 seconds the text: success
Collapse Else - Actions
Do nothing
Cause "Target unit of ability being cast" doesn't seem to work with aoe. Please help.
02-02-2008, 05:26 PM#2
zen87
I guess you'll need to change the war stomp buff to something else, then after the unit cast the warstomp, pick all the units around the caster and check for the buff
02-02-2008, 06:14 PM#3
darkwulfv
Yes, checking for the buff of your spell in an area around the caster is your best bet.
02-02-2008, 06:23 PM#4
chobibo
If your checking for buffs, try checking it at after the spell has been casted (known in jass as: EVENT_PLAYER_UNIT_SPELL_ENDCAST)
02-02-2008, 06:29 PM#5
darkwulfv
No, you want at the end of the ability, not the casting. If the casting is halted for any reason (stuns, cancel, etc.) That event will fire anyways. Use "Unit starts the effect of an ability".
02-02-2008, 07:20 PM#6
chobibo
Will there be any buffs at spell effect? I stand corrected. Sorry
02-02-2008, 09:02 PM#7
darkwulfv
For certain spells you may want a .2 polledwait call, mainly missile ones though. For this, I'd use one to be 100% sure.