- Joined
- Jul 20, 2012
- Messages
- 83
Hello again, so I've been working on another spell for my Hero and all goes well until the unit has buff "Disgusted"...
- If Devour is used on heroes, they get infected (if skill Release Disease is learned), reducing armor and bonus damage equal to some STR of caster...
- If a non-hero unit is "Disgusted" first, then eaten, it gives caster another bonus Well Fed and bonus to heal...
This all is working but the part "Disgusted and Devoured" doesn't remove the unit from the game... if a unit is not Disgusted and Devoured it removes it properly...
I don't know what to do please help me, and please don't tell me it's leaking or something like that I just need the basic stuff...
-
Devour
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Devour
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Target unit of ability being cast) is A Hero) Equal to True
- ((Casting unit) belongs to an enemy of (Owner of (Target unit of ability being cast))) Equal to True
-
Then - Actions
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Real((Strength of (Casting unit) (Include bonuses)))) x (0.25 + (0.25 x (Real((Level of Devour for (Casting unit))))))) damage of attack type Pierce and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Release Disease for (Casting unit)) Greater than 0
-
Then - Actions
- Unit - Create 1 Meat Wagon (Dummy) for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Position of (Target unit of ability being cast))
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Set level of Infection (Meat Wagon) for (Last created unit) to (Level of Release Disease for (Casting unit))
- Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb (Target unit of ability being cast)
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Target unit of ability being cast) is A Hero) Equal to False
-
Then - Actions
- Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + (((Life of (Target unit of ability being cast)) x (0.10 x (Real((Level of Devour for (Casting unit)))))) + 0.00))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Target unit of ability being cast) has buff Disgust ) Equal to True
-
Then - Actions
- Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + (((Life of (Target unit of ability being cast)) x (0.05 x (Real((Level of Disgust for (Casting unit)))))) + 0.00))
- Unit - Create 1 Meat Wagon (Dummy) for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Position of (Casting unit))
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
- Unit - Set level of Damage (Well Fed) for (Last created unit) to (Level of Disgust for (Casting unit))
- Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
- Else - Actions
-
If - Conditions
- Unit - Remove (Target unit of ability being cast) from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
- If Devour is used on heroes, they get infected (if skill Release Disease is learned), reducing armor and bonus damage equal to some STR of caster...
- If a non-hero unit is "Disgusted" first, then eaten, it gives caster another bonus Well Fed and bonus to heal...
This all is working but the part "Disgusted and Devoured" doesn't remove the unit from the game... if a unit is not Disgusted and Devoured it removes it properly...
I don't know what to do please help me, and please don't tell me it's leaking or something like that I just need the basic stuff...