| 02-28-2005, 06:03 PM | #1 |
I haven't done any editing since 1.15; then I was quite capable and knew basics of jass. Is there any way to make spell immune units immune to frost? I couldn't find anything in the gameplay constants. |
| 02-28-2005, 08:11 PM | #2 |
Well, I don't know of a way outside of triggers, but you could make an event that fires when a unit is attacked and checks if the attacked unit has spell immunity and if the attacker has frost attack, and if they do, removes the frost buff from the attacked unit. |
| 03-02-2005, 10:31 AM | #3 |
No! You will need to make the unit immune to all cold spells by taking each of them one by one. Every time an unit is targeted by such a spell, you can quickly give the unit the Spell Shield ability, and remove it after a short period of time. ~Daelin |
| 03-02-2005, 01:10 PM | #4 |
Besides i don't think it's possible to tell if a unit has an ability when last i checked. Just buffs i think. |
| 03-02-2005, 01:18 PM | #5 |
you could use "unit - level of ability for unit" if the return says 0 means it doesnt has the ability, if its > 0 then he has it. |
