HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

quick question

02-02-2004, 07:17 PM#1
Alakafizz
When "picking units matching conditions" - is there any matching conditions that checks for magic resistance/immunity on the unit? Like Golem's magic immunity.

It sucks to have a triggered spell do damage, then spawn a finisher-unit that's supposed to finished it off with an edited chain lightning to get the casting hero the XP/gold, but then the magic immunity leaves the attacked Golem at ~10hp ..

Anyone?
02-02-2004, 07:29 PM#2
Hunter0000
just run a condition on each immune unit, that way you can do X-tra damage to it.
02-02-2004, 08:19 PM#3
Alakafizz
I think you misunderstood my question; otherwise i misunderstood your answer.

Im asking IF there's a way to check (a condition) if a unit is immune to magic - I.e., somewhere under boolean, unit, ability etc etc? Because i cant seem to find anything.

And about the extra damage: Im looking to do the last bit of damage with a unit that fires chain lightning (or some other spell), because if an action like "set unit lift to unit life - 50" kills the target, the casting hero wont get xp/gold.
02-02-2004, 08:23 PM#4
Shark
well, try something like this "matching conditions - Unit has ability:magic immunity"...or add a line that will strip them of their magic immunity for the duration of the trigger, and put it back on when the trigger finishes everything....
or if the spell is meant to kill an unit, just strip it of its magic immunity, and voila :)
02-02-2004, 08:32 PM#5
Alakafizz
yeah, was searching for that specific condition. Found it under integer-conditions, so im all good. Thanks people =)
02-02-2004, 09:17 PM#6
Shark
so, the solution was "level of magic immunity equal to 1" or something else ? post up the anser, im intrigued by it :)
and i'd also like to know the full comparison...
02-02-2004, 10:14 PM#7
Alakafizz
Yeah, something like that:

[code]
Unit Group - Pick every unit in (Units within 150.00 of FirewallPoint[FirewallInt] matching ((((Owner of (Matching unit)) is an enemy of (Owner of FirewallCaster)) Equal to True) and (((Custom value of (Matching unit)) Not equal to 1) and (((Level of Spell Immunity for (Matching unit)) Equal to 0) and ((Level of Spell Immunity (Neutral Hostile) for (Matching Unit)) Equal to 0) and do (Actions)

I added both kinds for safety - ill check later to see which one is actually needed :)

What do you mean, the full comparison?