[Spell] Trigger to cast spell but exclude melee

Level 4
Joined
Apr 21, 2016
Messages
31
Hi!

So I want to make a trigger that casts a bounce spell but only to heroes between 400 and 1200 radius around the boss.

  • CastBlisteringCold
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Set VariableSet BC_TempTargets = (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of Player 4 (Purple).) Equal to True)))
      • Unit Group - Pick every unit in BC_TempTargets and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is in (Units within 400.00 of (Position of Araj_Entity_Exist).).) Equal to False
              • ((Picked unit) is in (Units within 1200.00 of (Position of Araj_Entity_Exist).).) Equal to True
            • Then - Actions
              • Unit Group - Add (Picked unit) to BC_TargetGroup
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in BC_TargetGroup) Greater than 0
        • Then - Actions
          • Set VariableSet BC_RandomTarget = (Random unit from BC_TargetGroup)
          • Unit - Order Araj_Entity_Exist to Undead Lich - Frost Nova BC_RandomTarget
        • Else - Actions
      • Custom script: call DestroyGroup(udg_BC_TempTargets)
      • Custom script: call DestroyGroup(udg_BC_TargetGroup)
Spell was based on spell called Channel but I changed Order strings so trigger can use it.

1727890040702.png


Any ideas/advice?
 
Level 4
Joined
Apr 21, 2016
Messages
31
It's actually Data - base order ID that needed to be frostnova
Tested it and it works.

If you think this info is useful archive the thread or delete it if not.

Thanks anyway <3
 
Top