• 🏆 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!

Trigger Help - A Spell

Status
Not open for further replies.
Level 1
Joined
Sep 11, 2008
Messages
2
The GUI doesn't seem to be capable of running the spell I'm trying to make and I'm unfamiliar with JASS. Please help?

The spell has two levels. At level 1 it lasts 20 seconds. At level 2 is lasts 30.

While active, whenever the caster takes damage he deals that much damage to every enemy within a range of 600 of him.

How do I make this happen, whether in the GUI or in JASS?
 
Level 17
Joined
Jan 21, 2007
Messages
2,013
Well, there is a unit takes damage event, but it must be added through another trigger, and this leaks. I'm not sure how to fix this leak.
Whenever a unit learns the spell, add the event (unit takes damage) to your main trigger. There, pick all units around the (damaged unit) and order (damaged unit) to deal (damage dealt) to (picked unit)
 
Status
Not open for further replies.
Top