Damage Target causes crash

Rllulium

New Member
Reaction score
10
Trigger:
  • Events
    • EGUI Unit - Any unit takes damage
    • Conditions
      • ((Damage source) has buff Test Buff ) Equal to True
    • Actions
      • Unit - Cause (Damage source) to damage (Triggering unit), dealing 500.00 damage of attack type Spells and damage type Normal


Above trigger crashes my client to crash every time. I can use Damage source and Triggering unit for other things and I do not have any other problems with using the functions above. Infact, I can even write:

Trigger:
  • Events
    • EGUI Unit - Any unit takes damage
    • Conditions
      • ((Damage source) has buff Test Buff ) Equal to True
    • Actions
      • Unit - Cause (Triggering unit) to damage (Damage source), dealing 500.00 damage of attack type Spells and damage type Normal


And it will not crash.
 

Slapshot136

Divide et impera
Reaction score
471
your creating an infinite loop because when you damage the unit, you run the trigger again, which damages the unit, which causes the trigger to run again, etc.

try turning the trigger off before the damage, and then turning it back on after the damage
 

Rllulium

New Member
Reaction score
10
your creating an infinite loop because when you damage the unit, you run the trigger again, which damages the unit, which causes the trigger to run again, etc.

try turning the trigger off before the damage, and then turning it back on after the damage

I am going to confess that the existence of this kind of functionality has never even occured to me.

I believe that I can fix it now, thank you!
 
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