Hello,
I want that my abilities can only be cast on Dark Grass. I already achieved this with the following trigger:
1. Unit casts ability
2. Trigger runs, adds mana to the unit
3. Warcraft substracts manacost from the unit
As you can see this is not the right order... It should be like this:
1. Unit casts ability
2. Warcraft substract manacost from the unit
3. Trigger adds mana to the unit
Please, can someone have a look at it and give me a better solution? I really have no idea how to make this work...
Thank you in advance!
I want that my abilities can only be cast on Dark Grass. I already achieved this with the following trigger:
-
SummonHeadhunters
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to 003 Summon Headhunter
-
(Ability being cast) Equal to 203 Summon Headhunter
-
-
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Terrain type at (Target point of ability being cast)) Equal to Lordaeron Summer - Dark Grass
-
-
Then - Actions
-
Game - Display to (All players) the text: Casting summon head...
-
Set VariableSet loc = (Position of (Triggering unit))
-
Set VariableSet loc2 = (Target point of ability being cast)
-
Set VariableSet loc3 = ((Target point of ability being cast) offset by (0.00, 175.00))
-
Set VariableSet loc4 = ((Target point of ability being cast) offset by (0.00, -175.00))
-
Unit - Create 1 DummyHeadhunterCaster for (Owner of (Triggering unit)) at loc facing Default building facing degrees
-
Unit - Order (Last created unit) to Orc Shadow Hunter - Serpent Ward loc2
-
Unit - Create 1 DummyHeadhunterCaster for (Owner of (Triggering unit)) at loc facing Default building facing degrees
-
Unit - Order (Last created unit) to Orc Shadow Hunter - Serpent Ward loc3
-
Unit - Create 1 DummyHeadhunterCaster for (Owner of (Triggering unit)) at loc facing Default building facing degrees
-
Unit - Order (Last created unit) to Orc Shadow Hunter - Serpent Ward loc4
-
Custom script: call RemoveLocation(udg_loc)
-
Custom script: call RemoveLocation(udg_loc2)
-
Custom script: call RemoveLocation(udg_loc3)
-
Custom script: call RemoveLocation(udg_loc4)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Equal to Player 1 (Red)
-
-
Then - Actions
-
Trigger - Run CycleRedDeck <gen> (checking conditions)
-
-
Else - Actions
-
Trigger - Run CycleBlueDeck <gen> (checking conditions)
-
-
-
-
Else - Actions
-
Game - Display to (All players) the text: You are not allowed...
-
Unit - Order (Triggering unit) to Stop.
-
Unit - Set mana of (Triggering unit) to ((Unit: (Triggering unit)'s Real Field: Mana ('umpc')) + (Real((Mana cost of (Ability being cast), Level 0.))))
-
-
-
-
1. Unit casts ability
2. Trigger runs, adds mana to the unit
3. Warcraft substracts manacost from the unit
As you can see this is not the right order... It should be like this:
1. Unit casts ability
2. Warcraft substract manacost from the unit
3. Trigger adds mana to the unit
Please, can someone have a look at it and give me a better solution? I really have no idea how to make this work...
Thank you in advance!
Last edited: