• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] How to make triggered spell work with spell shield

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2010
Messages
950
How to make triggered spell NOT work with spell shield

So i have a triggered spell that uses finger of death as its base and if that spell is blocked or missed the spell still runs becuz its triggered already obviously. But whats an easy way to let the spell shield amulet still block it like any normal target spell?
 
Last edited:
Level 5
Joined
Jan 4, 2007
Messages
103
Well you could add an if-then-else, if a unit has Item-Type of Spell Shield or any other that has that ability, don't do damage, if he doesn't have that Item, do the damage ect. If it's a spell that you get, then you could use a integer Variable that you put to 1 if a player gets that spell then in the if-then-else put if Integer Variable equals to 1 don't do damage if it's 0 do damage ect. or just add those units to a unit group and if the Targeted Unit of Ability being Cast is in that group don't do damage ect.

Also, if the spell has a cooldown, add another variable to your if-then-else if that variable is 1 that means the cooldown is finished and should not damage, then put the variable to 0 and run a trigger that has a 15sec(or the cooldown of your ability) wait and then set the variable to 1. If the variable is 0 and the cooldown isn't finished it will not damage ect. Hope it helps:)
 
Last edited:
Level 13
Joined
Mar 24, 2010
Messages
950
yeah its not really a damaging spell and not too worried about the refection of it or angles. Just mostly the blocking power of the spell shield and taking into account its 2 min cd time. and theres also a 2nd shield item with a 30 sec cd time.
 
Status
Not open for further replies.
Top