• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[Spell] Return damage to attackers

Status
Not open for further replies.
Hello guys,
I'm making a spell which goes like this:
I took Vashj's Mana Shield. When the Mana shield is activated every attack on Vashj will return its damage to the attacker (works with melee and ranged units).

I tried making this trigger, with Spell Book that includes Thorn aura or Spiked carapace.

  • Untitled Trigger 001
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Lady Vashj 0004 <gen> has buff Mana Shield) Equal to True
        • Then - Actions
          • Unit - Add Spell Book to Lady Vashj 0004 <gen>
        • Else - Actions
          • Unit - Remove Spell Book from Lady Vashj 0004 <gen>
          • Unit - Remove Thorns Aura buff from Lady Vashj 0004 <gen>
The biggest problem is that thorn aura and spiked carapace return damage only to melee attackers.
Is there any other warcraft3 spell that does the same thing with Ranged units?

Please help.
 
Level 11
Joined
May 16, 2016
Messages
730
You should use damage detection systems to determine who deals damage. For example I'm using GDD system, BUT to detect damage caused by only attacks you have to use dummy spells instead on real ones. For example to cast shockwave you need "empty" target point spell and real shockwave which is launched by created dummy. in this case you can divide damage caused by attack blows and spell damage.
 
Status
Not open for further replies.
Top