• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

damage detection spell

Status
Not open for further replies.
Level 2
Joined
Feb 15, 2011
Messages
6
Sorry if i bad with english but please help my following triggers:
Damage Detection
Events:
Unit - Unit is attacked
Conditions:
((Attacking Unit)) has buff Damage Boost) Equal to True
Actions:
Trigger - Add to Damage Boost Dealt <gen> the event (Unit - (Triggering unit) Takes damage)

Damage Boost Dealt
Events:
Conditions:
Actions:
Unit - Cause (Damage source) to damage (Triggering Unit), dealing (Damage Taken) damage of attack type Hero and damage type Normal
Unit - Remove Damage Boost Buff from (Damage source)

When i test this trigger, it always crashed. Help please.
 
Level 11
Joined
Nov 15, 2007
Messages
781
Infinite loop. Turn the damage boost trigger off at the start and on after the other actions.

Also be aware that this damage will proc off any damage dealt, not just normal attack damage. Which is why it loops infinitely because every time the target receives damage, they receive another instance of damage.
 
Status
Not open for further replies.
Top