Cause "unitA" to damage circular area, damages (unitA) too?

Knatten

New Member
Reaction score
7
Is it just me or does the damages Triggering Unit too :p
Code:
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 450.00 at Temp_Point, dealing ((Real(Dmgtaken)) / 10.00) damage of attack type Hero and damage type Universal
 

Flow

New Member
Reaction score
4
Why not a Thorns Aura @ 10% return damage? I'm guessing there's a flaw to it that makes you want to use a trigger?
 

PureOwnage

Minecraft Server OP, Inactive.
Reaction score
72
Make a unit group and then set the group so that it picks all units in a circular area not equal to the caster.
 

Knatten

New Member
Reaction score
7
Code:
Reflect
    Events
    Conditions
        ((Triggering unit) has buff Reflect ) Equal to True
        (Random integer number between 0 and 100) Less than or equal to 10
    Actions
        Set Temp_Point = (Position of (Triggering unit))
        Set ReflectGroup = (Units within 450.00 of Temp_Point matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
        Set Dmgtaken = (Integer((Damage taken)))
        Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Real(Damagetaken)))
        Unit Group - Pick every unit in ReflectGroup and do (Actions)
            Loop - Actions
                Unit - Cause (Triggering unit) to damage (Picked unit), dealing ((Real(Dmgtaken)) / 10.00) damage of attack type Spells and damage type Universal
        Custom script: call RemoveLocation(udg_Temp_Point)
        Custom script: call DestroyGroup(udg_ReflectGroup)

Here is what I got. Just wanted to make sure with you guys that there are no leaks or something. It works fine ingame, tho if I remove the Random Integer condition, the unit will still take some minor damage.
 

PureOwnage

Minecraft Server OP, Inactive.
Reaction score
72
The random integer thing is fine if you want to do something like 10% chance.
 

PureOwnage

Minecraft Server OP, Inactive.
Reaction score
72
Pretty sure that you don't have any because you destroyed to location and the group.
 
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