HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Aura Protection???

05-15-2007, 06:37 PM#1
Algencola
Hello,

i need help with a trigger i want to make.

What these trigger should do:
If a unit hasn't the aura from a hero, the unit can be killed by a spell of a other hero. The aura from the hero is like a protection for the units arround him. Units who have this aura are protected and can't be killed by the spell.

I hope someone can help me.

~Algencola
05-15-2007, 06:42 PM#2
MercyfulJester
Yeah, try this

Trigger:
Trigger
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Your Spell
((Target unit of ability being cast) has buff Your Buff) Equal to False
Collapse Actions
Unit - Kill (Target unit of ability being cast)


If you don't want to kill the unit outright, you could deal damage to it via triggers. You might also experience problems with that particular event, but you can replace that with "Begins Casting an Ability" to make it work better, although that has some other problems associated with it.
05-15-2007, 06:42 PM#3
CommanderZ
Check all units on map (this may be a bit more specified) every 3 seconds (maybe less) for a buff given by some dummy aura you give to your hero (for example endurance aura with 0% boosts) and if they have it, give spell immunity ability to them. If they don't have that buff, remove the ability from them
05-15-2007, 06:49 PM#4
MercyfulJester
Yeah, not sure if he wants a general spell immunity since he is talking about "the spell", but it would make more sense.
05-15-2007, 06:55 PM#5
CommanderZ
Quote:
If a unit hasn't the aura from a hero, the unit can be killed by a spell of a other hero.

I think this explains his problem, he is talking about "a spell"
05-16-2007, 02:22 PM#6
Algencola
Thanks for your answers!

MercyfulJester's Trigger works very well. Good idea

~Algencola