[Solved] Targets Allowed doesn't appear to work

Level 2
Joined
Apr 12, 2025
Messages
8
Problem
I don't want poison to stick to undead, but no matter what I do it will stick to undead units.

Details
My "base" skill is envenomed spears. I have the ability's 'targets allowed' field set to "alive".
The undead units in question, i have their 'targeted as' field set to "dead".
I also have the dummyunit who spawns to apply the poison 'targets allowed' field set to "alive".
unit classification for the undead units is also set to undead.

Is there a setting somewhere else that will influence this?
 
Level 21
Joined
Mar 16, 2008
Messages
955
I don't have a good answer. But I wish there was a guide explaining the target settings in Object Editor somewhere because it can be really confusing. My, potentially wrong, understanding is that "dead" refers to literal corpses, not undead type units. If you use Holy Light or Death Coil as examples, it doesn't specify dead as a Target Allowed. Even Death Pact, which can only target friendly undead units, doesn't specify "dead."

Someone really needs to write a short guide on how this all works.
 
Level 2
Joined
Apr 12, 2025
Messages
8
Well guys, I was able to figure out a solution. Everything I could find and read about target settings pretty much indicated that they're broken in many cases, or work in hardcoded ways that we can't really see. I have to use dummys to trigger the AoE of my poison, so I was able to modify that with a condition and it works great, as any unit can be characterized as undead regardless of what they are, I can use this for random poison immunity as well. Now just need to figure out cold immunity.

  • vipertower1 poison
    • Events
      • Unit - A unit owned by Player 12 (Brown) About to take damage
    • Conditions
      • (Unit-type of (Damage source)) Equal to |cffffcc00Viper Nest|r
      • ((Triggering unit) is Undead) Equal to False
    • Actions
      • Unit - Create 1 dummy - poison (Custom Campaign) for (Owner of (Damage source)) at (Position of (Damage Target)) facing Default building facing degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Attack Once (Damage Target)
 
Top