• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

JASS Spell Shield

A spell shield that is implemented purely in JASS instead of using the "Amulet of Spell Shield" ability. Currently it uses an ability to store its cooldown but that can be changed. See trigger editor for import instructions.

This approach is ideal for trigger based spells since it never fires a "starts the effect of an ability" event when a spell is blocked.
Contents

JASS Spell Shield (Map)

Reviews
Wrda
You could cache GetSpellTargetUnit in onCast function into a local variable. I don't understand the need to set the unit's ability over the unit's max mana. I tested and it seems the system works without it, is there any case for it? Overall, it's a...

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
2,010
You could cache GetSpellTargetUnit in onCast function into a local variable.
I don't understand the need to set the unit's ability over the unit's max mana. I tested and it seems the system works without it, is there any case for it?

Overall, it's a nice alternative implementation, the major difference is when one casts missile-type spells on the unit (storm bolt).

Approved
 
Top