How to add attack type condition?

Level 11
Joined
Jul 22, 2015
Messages
223
I was trying to get the "Hero" attack type but i didnt know the reference to do that instead it will summon so many footman even not "Hero-attack type"
1764384807165.png
 
As Herly said, you need Bribe's DDS (Damage Detection System).

I'm going to assume you're on the latest WC3 patch since the latest version of Bribe's DDS will require that. Be sure to enable JassHelper and vJass first in your Trigger Editor before installing this mod.
 
You used the wrong condition
  • Damage
    • Events
      • Unit - A unit Takes damage
    • Conditions
      • (Damage From Normal Attack) Equal to True
      • (Unit: (Damage source)'s Weapon Integer Field: Attack Attack Type ('ua1t') at Index:0) Equal to 6
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees
This works without need for a DDS, the damage type check is an integer condition and 6 is hero type

1764411770485.png
 
Back
Top