Kusanagi Kuro
Hosted Project: SC
- Joined
- Mar 11, 2012
- Messages
- 708
I make a Fire Shield spell that base on Inner Fire. It cause enemy unit to take damage every time it attack or move too close to my unit that has this spell's buff on it. I using 3 trigger (1 heal, one damage the enemy when they attack the unit, one damage the enemy when they are too close to the unit). Here are the trigger:
After a few times using this skill and it work really perfect except for 1 thing: THE ENEMY AI CREEP DONT ATTACK MY UNIT ANYMORE. >.<
I cant figure it out. Some one help me plz.
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Triggering unit) has buff Fire Shield ) Equal to True
-
Actions
- Set FireShield = (Level of Fire Shield for CastingHero2)
- Set Damage = (((Real(FireShield)) - 1.00) + 24.00)
- Unit - Cause CastingHero2 to damage (Attacking unit), dealing Damage damage of attack type Spells and damage type Enhanced
-
Events
- Time - Every 1.00 seconds of game time
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Fire Shield ) Equal to True
-
Then - Actions
- Set Damage = (18.00 + ((Real(FireShield)) x 12.00))
- Set AOE = (Position of (Picked unit))
- Unit Group - Pick every unit in (Units within 250.00 of AOE) and do (If ((((Picked unit) is A structure) Equal to True) or ((Owner of (Picked unit)) Equal to (Owner of CastingHero2))) then do (Do nothing) else do (Unit - Cause CastingHero2 to damage (Picked unit), dealing Damage damage of attack type Spells and damage type En
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Fire Shield
-
Actions
- Set CastingHero2 = (Triggering unit)
- Set Target = (Target unit of ability being cast)
- Unit - Set life of Target to ((Life of Target) + ((Max life of CastingHero2) / 10.00))
I cant figure it out. Some one help me plz.