- Joined
- Mar 17, 2012
- Messages
- 582
Hi there!
I have a spell "Spoil". It is a buff than helps to gain additional money from duying unit.
But in my trigger it doesn't check that duyind unit has a specific buff... look:
I have a spell "Spoil". It is a buff than helps to gain additional money from duying unit.
But in my trigger it doesn't check that duyind unit has a specific buff... look:
-
Spoil
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Spoil
-
-
Actions
-
Set Spoil_Caster = (Triggering unit)
-
Set Spoil_Target = (Target unit of ability being cast)
-
Set Spoil_Caster_Level = (Level of Spoil_Caster)
-
Set Spoil_Target_Level = (Level of Spoil_Target)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Spoil_Caster_Level - Spoil_Target_Level) Greater than -9
-
(Spoil_Caster_Level - Spoil_Target_Level) Less than 9
-
-
Then - Actions
-
Set Spoil_Real = 1.00
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 100) Less than or equal to (90 x (Integer(Spoil_Real)))
-
-
Then - Actions
-
Unit - Create 1 Dummy for (Owner of Spoil_Caster) at (Position of Spoil_Target) facing Default building facing degrees
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Spoil dummy to (Last created unit)
-
Unit - Order (Last created unit) to Orc Shaman - Lightning Shield Spoil_Target
-
Unit - Cause Spoil_Caster to damage Spoil_Target, dealing 1.00 damage of attack type Normal and damage type Normal
-
Special Effect - Create a special effect attached to the overhead of Spoil_Target using Fireworksgreen.mdx
-
Special Effect - Destroy (Last created special effect)
-
Trigger - Turn on Spoiled Units List <gen>
-
-
Else - Actions
-
Special Effect - Create a special effect attached to the overhead of Spoil_Target using Fireworksred.mdx
-
Special Effect - Destroy (Last created special effect)
-
-
-
-
Else - Actions
-
Set Spoil_Real = 0.10
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 100) Less than or equal to (90 x (Integer(Spoil_Real)))
-
-
Then - Actions
-
Unit - Create 1 Dummy for (Owner of Spoil_Caster) at (Position of Spoil_Target) facing Default building facing degrees
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Spoil dummy to (Last created unit)
-
Unit - Order (Last created unit) to Orc Shaman - Lightning Shield Spoil_Target
-
Unit - Cause Spoil_Caster to damage Spoil_Target, dealing 1.00 damage of attack type Normal and damage type Normal
-
Special Effect - Create a special effect attached to the overhead of Spoil_Target using Fireworksgreen.mdx
-
Special Effect - Destroy (Last created special effect)
-
Trigger - Turn on Spoiled Units List <gen>
-
-
Else - Actions
-
Special Effect - Create a special effect attached to the overhead of Spoil_Target using Fireworksred.mdx
-
Special Effect - Destroy (Last created special effect)
-
-
-
-
-
Set Spoil_Caster = No unit
-
Set Spoil_Target = No unit
-
Set Spoil_Real = 0.00
-
Set Spoil_Caster_Level = 0
-
Set Spoil_Target_Level = 0
-
-
-
Spoiled Units List
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) has buff Spoil ) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Darkhunter
-
(Unit-type of (Triggering unit)) Equal to Enforcer
-
(Unit-type of (Triggering unit)) Equal to Furbolg
-
(Unit-type of (Triggering unit)) Equal to Murloc
-
(Unit-type of (Triggering unit)) Equal to Razormane
-
(Unit-type of (Triggering unit)) Equal to Succubus
-
(Unit-type of (Triggering unit)) Equal to Tuskarr
-
(Unit-type of (Triggering unit)) Equal to Zombie
-
-
-
-
Then - Actions
-
Player - Add (Random integer number between 100 and 132) to (Owner of (Killing unit)) Current gold
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-