How this skill supposed to work:
If my hero attacks a unit within his 200 range, a dummy unit would pick 1 random enemy unit within his 600 range of my hero and cast "Storm Bolt"
Problem:
Even though my dummy unit is created on the position of the random unit within the 600 range, that unit won't use the skill "Storm Bolt" to that enemy unit.
(well sometimes, it works, but most of the time it doesn't)
NOTE: The "Storm Bolt" is the skill basis of the "Storm Master Lightning Effect" skill
If my hero attacks a unit within his 200 range, a dummy unit would pick 1 random enemy unit within his 600 range of my hero and cast "Storm Bolt"
Problem:
Even though my dummy unit is created on the position of the random unit within the 600 range, that unit won't use the skill "Storm Bolt" to that enemy unit.
(well sometimes, it works, but most of the time it doesn't)
NOTE: The "Storm Bolt" is the skill basis of the "Storm Master Lightning Effect" skill
-
Storm Master
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Attacked unit) belongs to an enemy of (Owner of HeavyRain_caster)) Equal to True
- (Attacking unit) Equal to HeavyRain_caster
- HeavyRain_chk Equal to 1
-
Actions
-
Unit Group - Pick every unit in (Units within 200.00 of (Position of HeavyRain_caster)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Picked unit) Equal to (Attacked unit)
-
Then - Actions
-
Unit Group - Pick every unit in (Units within 600.00 of (Position of HeavyRain_caster)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of HeavyRain_caster)) Equal to True
-
Then - Actions
- Unit Group - Add (Picked unit) to HeavyRain_targetGrp
-
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 within 600.00 of (Position of HeavyRain_caster)) and do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Unit - Create 1 Dummy Skiller Unit for (Owner of HeavyRain_caster) at (Position of (Attacked unit)) facing Default building facing degrees
- Set StormMaster_attacker = (Last created unit)
- Unit - Add Storm Master (Lightning Effect) to StormMaster_attacker
- If ((Level of Storm Master for HeavyRain_caster) Equal to 1) then do (Unit - Set level of Storm Master (Lightning Effect) for StormMaster_attacker to 1) else do (Do nothing)
- If ((Level of Storm Master for HeavyRain_caster) Equal to 2) then do (Unit - Set level of Storm Master (Lightning Effect) for StormMaster_attacker to 2) else do (Do nothing)
- If ((Level of Storm Master for HeavyRain_caster) Equal to 3) then do (Unit - Set level of Storm Master (Lightning Effect) for StormMaster_attacker to 3) else do (Do nothing)
- Unit - Order StormMaster_attacker to Human Mountain King - Storm Bolt (Random unit from HeavyRain_targetGrp)
- Unit - Remove StormMaster_attacker from the game
-
Unit Group - Pick every unit in (Units within 200.00 of (Position of HeavyRain_caster)) and do (Actions)
-
Events