• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 25
Joined
Nov 18, 2012
Messages
1,870
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