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

[Spell] Neutral Hostile units don't respond to dummycasters damage

Status
Not open for further replies.
Level 9
Joined
Mar 17, 2016
Messages
153
Hi,

So, for instance, I have a spell that will summon 3 dummycasters and shoot out what's basically carrion swarm(which uses point targeting). However, and I have found this to happen with most dummycaster abilities, if used on neutral hostile units the damage will affect them but they will not treat it as if they had been attacked (I'm guessing because the dummy units have the "Locust" ability). How would this be remedied? My map has basically no PvP so if the computer player units do not respond to being attacked it could be very easily exploitable.

Thanks.
 
Level 5
Joined
Jun 12, 2018
Messages
149
  • Unit - Cause caster to damage target, dealing 500.00 damage of attack type Spells and damage type Normal
I'm not sure this would make the target attack the caster even if he's in range.

Concerning your question, you can edit your actual spell trigger to force damaged units to attack the original source after damage being done.
One could register the damaged units in a unit group, loop over them after the spell trigger effects and if the caster is in range, order them to attack him.
 
Level 6
Joined
Dec 31, 2017
Messages
138
I'm guessing because the dummy units have the "Locust" ability
Yes, it happens becouse they cannot attack what's attaking them.
When a Paladin with activated DS attack creeps, they will not agro at other Paladins units.
  • Unit - Cause caster to damage target, dealing 500.00 damage of attack type Spells and damage type Normal
I'm not sure this would make the target attack the caster even if he's in range.
It must work.
Other solution would be changing your dummy spell to deal some minimal damage. But the latter is not recommended.
 
Level 9
Joined
Mar 17, 2016
Messages
153
Other solution would be changing your dummy spell to deal some minimal damage. But the latter is not recommended.
This method is actually what I ended up doing, since the dummy ability is based off carrion swarm and I cannot pick specific units using it.

Order the unit to attack move to it's location, if it is not already doing an aggressive order (Move or stop or hold position), when hit
Would this method involve the "Pick every unit" action?


Also, this is low priority since I do have a fix, it is just a cheap one (what Deserted recommended). Thanks for the help too, +rep to everyone who responded
 
Status
Not open for further replies.
Top