• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 26
Joined
Nov 18, 2012
Messages
1,894
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