• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to make unit imune to Trueshot Aura

Status
Not open for further replies.
Level 3
Joined
Jan 11, 2008
Messages
36
I need help, how to make some type of units imune to Trueshot Aura, because I have some custom units, which are classificated as archers, but they should be meele units (I am using Weapon Type: missile, because the unit can fire missiles, but it should be still meele unit).

Now I am using this trigger to fix it, but I think it's not the best solution and it has also some bugs (the unit has sometimes Trueshot Aura buff for part of second. I can decrease the trigger repeating time, but it can lag the game.)

  • Events
    • Time - Every 0.25 seconds of game time
  • Conditions
  • Actions
    • Unit Group - Pick every unit in (Units type of my_custom_unit) and do (Actions)
      • Loop - Actions
        • Unit - Remove Trueshot Aura buff from (Picked unit)
 
Level 12
Joined
Mar 16, 2006
Messages
992
I need help, how to make some type of units imune to Trueshot Aura, because I have some custom units, which are classificated as archers, but they should be meele units (I am using Weapon Type: missile, because the unit can fire missiles, but it should be still meele unit).

Now I am using this trigger to fix it, but I think it's not the best solution and it has also some bugs (the unit has sometimes Trueshot Aura buff for part of second. I can decrease the trigger repeating time, but it can lag the game.)

  • Events
    • Time - Every 0.25 seconds of game time
  • Conditions
  • Actions
    • Unit Group - Pick every unit in (Units type of my_custom_unit) and do (Actions)
      • Loop - Actions
        • Unit - Remove Trueshot Aura buff from (Picked unit)

Good GOD, man.


Just edit the classifications and targets allowed. And don't do that every .25 seconds. Jesus.
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
OR you could make an "anti-trueshot-aura"-thingy. When your unit type gets trueshot aura buff give it an ability what decreases your unit's damage the exact percent the trueshot aura does. This way your can skip the glitches coming with the unit classification change.
Don't forget to remove the ATSA when your unit type loses the trueshot aura buff ;)
 
Status
Not open for further replies.
Top