SouLEDGE
Damn you advanced calculus
- Reaction score
- 75
Okay, so I'll be damned if I can't finish this spell.
Description: Passive spell with cooldown.
On enemy hit at creates a shield for 2 secs and absorbs incoming damage
When 2 secs is over it releases the damage in a 500 AOE.
The problem is it works for the first time round but then the spell(icon) and spell(cooldown) are not switched back.
The problem is it works for the first time round but then the spell(icon) and spell(cooldown) are not switched back and it doesn't work again. Any thoughts?
Description: Passive spell with cooldown.
On enemy hit at creates a shield for 2 secs and absorbs incoming damage
When 2 secs is over it releases the damage in a 500 AOE.
The problem is it works for the first time round but then the spell(icon) and spell(cooldown) are not switched back.
Trigger:
- Inner Shield Learn
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Inner Shield (Research)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned skill level) Equal to 1
- Then - Actions
- Unit - Add Inner Shield (Icon) to (Triggering unit)
- Trigger - Turn on Inner Shield <gen>
- Else - Actions
- If - Conditions
- Unit - Set level of Inner Shield (Cooldown) for (Triggering unit) to (Learned skill level)
- Unit - Set level of Inner Shield (Icon) for (Triggering unit) to (Learned skill level)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Inner Shield
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- (Level of Inner Shield (Icon) for GDD_DamagedUnit) Not equal to 0
- ((Owner of GDD_DamageSource) is an enemy of (Owner of GDD_DamagedUnit)) Equal to True
- Actions
- Set IS_level = (Level of Inner Shield (Icon) for GDD_DamagedUnit)
- Unit - Add Inner Shield (Cooldown) to GDD_DamagedUnit
- Unit - Set level of Inner Shield (Cooldown) for GDD_DamagedUnit to IS_level
- Unit - Remove Inner Shield (Icon) from GDD_DamagedUnit
- Unit - Order GDD_DamagedUnit to Orc Troll Berserker - Berserk
- -------- - --------
- Trigger - Turn on Inner Shield Damage <gen>
- Set IS_group = (Units within 500.00 of (Position of GDD_DamagedUnit))
- Wait 2.00 seconds
- Unit Group - Pick every unit in IS_group and do (Actions)
- Loop - Actions
- Unit - Cause GDD_DamagedUnit to damage (Picked unit), dealing IS_damage damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
- Loop - Actions
- Special Effect - Create a special effect attached to the origin of GDD_DamagedUnit using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Trigger - Turn off Inner Shield Damage <gen>
- EGUI Leak - Destroy IS_group
- Set IS_damage = 0.00
- -------- - --------
- Wait 8.00 seconds
- Unit - Add Inner Shield (Icon) to GDD_DamagedUnit
- Unit - Set level of Inner Shield (Icon) for GDD_DamagedUnit to IS_level
- Unit - Remove Inner Shield (Cooldown) from GDD_DamagedUnit
- Events
Trigger:
- Inner Shield Damage
- Events
- Game - GDD_Damage becomes Equal to 0.00
- Conditions
- (Level of Inner Shield (Icon) for GDD_DamagedUnit) Not equal to 0
- (GDD_DamagedUnit has buff Inner Shield ) Equal to True
- ((Owner of GDD_DamageSource) is an enemy of (Owner of GDD_DamagedUnit)) Equal to True
- Actions
- Set IS_damage = (IS_damage + GDD_Damage)
- Unit - Set life of GDD_DamagedUnit to ((Life of GDD_DamagedUnit) + GDD_Damage)
- Events
The problem is it works for the first time round but then the spell(icon) and spell(cooldown) are not switched back and it doesn't work again. Any thoughts?