• 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.

[Trigger] Custom Ability Problem

Status
Not open for further replies.
Level 2
Joined
Jan 10, 2008
Messages
6
This ability has given me the most trouble out of all of them that I have made for my map so far. It basically is an auto-cast ability that adds damage to your attack. The reason I have it set up so funky is because of the way I have damage displayed in the map. Here is the code for the 3rd level of the ability.



Now the ability works fine, until it reaches the (Life of attackedUnit) Less than or equal to TempStat) part of the trigger. Basically, this ability won't kill an enemy if it's autocasting, and I cannot figure out why. Any help would be greatly appreciated. :grin:
 
Level 2
Joined
Jan 10, 2008
Messages
6
If I do remove the wait trigger the ability does become able to kill the enemy, but the problem is that this damage will be triggered before the unit actually attacks. So the damage kills the enemy, then the unit immediately targets another thing in the area and deals his attack damage and spell damage. Basically he gets a free hit. This could become a major problem anywhere where the ability would kill things in one hit because he would be like a machine gun and mow everything down. Any fix would be appreciated.
 
Status
Not open for further replies.
Top