Heal Damage enemies

streng

Member
Reaction score
1
Hi guys. Need fix one of my spells

Code:
Untitled Trigger 002
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Radiant Heal
    Actions
        Unit - Cause (Casting unit) to damage circular area after 0.10 seconds of radius 500.00 at (Position of (Target unit of ability being cast)), dealing 100.00 damage of attack type Spells and damage type Normal

What i want:
I want when healer hel another hero, this spell do AOE damage to enemies. Yes this triger work , but damaging everyone. And i want to damage only enemies not allies.
 

BloodySkullz

Active Member
Reaction score
10
Don't use 'Damage Area' function. Create a unit group and damage every picked unit.

An old trigger of mine:
Trigger:
  • Purification
    • Events
    • Unit - A unit Starts the effect of an ability
    • Conditions
    • (Ability being cast) Equal to Purification (Actual)
    • Actions
    • Set P_Cast_Unit = (Triggering unit)
    • Set P_Unit_Loc = (Position of P_Cast_Unit)
    • Set P_Tar_Unit = (Target unit of ability being cast)
    • Set P_Ene_Tar = (Units within 250.00 of P_Unit_Loc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of P_Cast_Unit)) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) has bu
    • Set P_Heal_Value = (90.00 x (Real((Level of Purification (Actual) for P_Cast_Unit))))
    • Special Effect - Create a special effect attached to the overhead of P_Tar_Unit using Abilities\Spells\Undead\FrostArmor\FrostArmorTarget.mdl
    • Special Effect - Destroy (Last created special effect)
    • Unit - Set life of P_Tar_Unit to ((Life of P_Tar_Unit) + P_Heal_Value)
    • Unit Group - Pick every unit in P_Ene_Tar and do (Actions)
    • Loop - Actions
    • Unit - Cause P_Cast_Unit to damage (Picked unit), dealing P_Heal_Value damage of attack type Chaos and damage type Universal
    • Custom script: call DestroyGroup (udg_P_Ene_Tar)
    • Custom script: call DestroyGroup (udg_P_Unit_Loc)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top