- Joined
- Aug 3, 2004
- Messages
- 2,909
I use this trigger to cancel a spell based on custom requirements. I have used it on several other spells but in this case it won't prevent the mana from being used.
A previous issue was that the "Animation - Cast Point" was not greater than 0 on the casting model. That is not the case here. The only difference is that I am using a dummy spell based on Roar which is an instant - the other working spells are all point cast.
How may I insure that the mana is not spent?
A previous issue was that the "Animation - Cast Point" was not greater than 0 on the casting model. That is not the case here. The only difference is that I am using a dummy spell based on Roar which is an instant - the other working spells are all point cast.
How may I insure that the mana is not spent?
-
Kraken Cast
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Kraken Call
-
-

Actions
-


Set TempLoc202 = (Position of (Triggering unit))
-


Set ErrorPlayer = (Owner of (Triggering unit))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Terrain pathing at TempLoc202 of type Floatability is off) Equal to True
-
-



Then - Actions
-




Unit - Order (Triggering unit) to Stop
-




Set ErrorMessage = Must be in water.
-




Custom script: call ErrorMessage(udg_ErrorMessage,udg_ErrorPlayer)
-
-



Else - Actions
-




Animation - Play (Triggering unit)'s spell animation
-




Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLoc202 facing Default building facing degrees
-




Unit - Add Blizzard (Kraken Call) to (Last created unit)
-




Unit - Order (Last created unit) to Human Archmage - Blizzard TempLoc202
-




Unit - Add a 60.00 second Generic expiration timer to (Last created unit)
-
-
-


Custom script: call RemoveLocation(udg_TempLoc202)
-
-




