Tawnttoo
New Member
- Reaction score
- 36
I have imported Weep's GDD and I'm currently trying to trigger all my spell damages in order to have a way of detecting attacks. I tried it with these triggers:
Where the buff "Damage Dealing (Backhand)" lasts for 0.01 seconds and is there only to detect the spell hit. My attack detection trigger is this:
However, it displays the message "This is an attack" on the spell cast as well. How can I fix this?
Trigger:
- Iron Grip
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- (GDD_DamagedUnit has buff Damage Dealing (Backhand)) Equal to True
- (Unit-type of GDD_DamageSource) Not equal to Dummy unit (Invisible)
- Actions
- Set TempReal = ((25.00 + (25.00 x (Real((Level of Iron Grip for GDD_DamageSource))))) + ((0.40 + (0.10 x (Real((Level of Iron Grip for GDD_DamageSource))))) x (Real(AbiPwrBonusTotal[(Player number of (Owner of GDD_DamageSource))]))))
- Trigger - Turn off (This trigger)
- Unit - Create 1 Dummy unit (Invisible) for (Owner of GDD_DamageSource) at TempPoint facing Default building facing degrees
- Unit - Add Stun (Dummy) to (Last created unit)
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Unit - Set level of Stun (Dummy) for (Last created unit) to (Level of Iron Grip for GDD_DamageSource)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt GDD_DamagedUnit
- Trigger - Turn on (This trigger)
- Events
Where the buff "Damage Dealing (Backhand)" lasts for 0.01 seconds and is there only to detect the spell hit. My attack detection trigger is this:
Trigger:
- On Attack
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- (Unit-type of GDD_DamageSource) Not equal to Dummy unit (Invisible)
- Or - Any (Conditions) are true
- Conditions
- (GDD_DamagedUnit has buff Damage Dealing (Backhand)) Not equal to True
- Conditions
- Actions
- Game - Display to (Player group((Owner of GDD_DamageSource))) the text: This is an attack
- Events
However, it displays the message "This is an attack" on the spell cast as well. How can I fix this?