HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

ETS - Ahlen - Cataclysmic Strike

12-22-2005, 01:59 AM#1
RaeVanMorlock
Trigger:
Cataclysmic Strike
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Unit-type of (Triggering unit)) Equal to Ahlen
(Ability being cast) Equal to Cataclysmic Strike (Ahlen - Advanced)
Collapse Actions
-------- Spell Effects --------
Unit - Move (Triggering unit) instantly to ((Position of (Target unit of ability being cast)) offset by 10.00 towards (360.00 - (Facing of (Triggering unit))) degrees), facing (Position of (Target unit of ability being cast))
Unit - Create 1 DummySpellGenerator for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Center of (Playable map area))
Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
Unit - Remove (Last created unit) from the game
Unit - Set life of (Target unit of ability being cast) to 1.00
Unit - Order (Triggering unit) to Attack (Target unit of issued order)
Sound - Play CriticalStrike <gen> at 100.00% volume, attached to (Target unit of ability being cast)
Environment - Create a 0.70 second Normal ripple deformation at (Position of (Target unit of ability being cast)) with starting radius 400.00, ending radius 400.00, and depth 90.00, using 0.70 second ripples spaced 512.00 apart
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
Trigger - Run Destroy SFX <gen> (ignoring conditions)

The triggers seem to work fine, but the spell doesn't seem to trigger--the Ahlen doesn't lose any mana and the cooldown on the ability doesn't trigger.



I was doing some debugging and found that the spell actually triggers (ie. consumes mana and starts its cooldown) between the time that "Starts the effect" and "finishes casting" occurs--but when using the "finishes casting" event, you can't use the "Event Response - Target Unit of Ability"

...

It's crap like this that makes me wonder what Blizzard was thinking.
12-22-2005, 05:49 AM#2
Blade.dk
I know that bug, mana is usually consumed at the right time, but cooldown comes a little after, according to my experiences. I've had this problem with a charge spell that did not start cooldown since I hid the unit at the time the spell was casted.

I don't know a better solution than to save the target unit in a variable/attach it to the caster when the spell is cast, and then use it when the spell is finished.
12-22-2005, 10:12 AM#3
Anitarf
I've had some more odd behaviour similar to this. In an arena map, I was trying to prevent the players from casting spells while not in the arena, so I made a few triggers that intercepted all orders and if the unit to whom the order was issued wasn't in the arena (and the order wasn't equal to stop or move or smart), it was ordered to stop.

So, the spell order should be canceled long before the units got to the "starts the effect of an ability" event, and it was, but for some reason, the mana for the spell was being consumed anyway when you ordered it cast outside of the arena (the cooldown didn't start). Really wierd.
12-22-2005, 10:42 AM#4
Blade.dk
The same happened for me on my arena.

Instant cast (no target) spells can only be interrupted by pausing the unit, ordering it to stop and unpausing it. Also, item spells doesn't seem interruptable.