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

Frozen wrath

Status
Not open for further replies.
Im working on new ability named FROZEN WRATH

PROBLEM: CASTER dies when casts ability-(but i cant see trigger that gives expiration timer or kills CASTER,so.........i need help!There is trigger...........


  • Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frozen Wrath
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy Effect 1 for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 250.00 towards (60.00 x (Real((Integer A)))) degrees) facing Default building facing (270.0) degrees
          • Unit - Order (Last created unit) to Human Blood Mage - Flame Strike (Position of (Last created unit))
      • Wait 0.40 seconds
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy Effect 1 for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 400.00 towards (30.00 x (Real((Integer A)))) degrees) facing Default building facing (270.0) degrees
          • Unit - Order (Last created unit) to Human Blood Mage - Flame Strike (Position of (Last created unit))
          • Set Frozen_Wrath_Point = (Position of (Casting unit))
          • Set Caster = (Casting unit)
          • Unit - Create 1 Dummy Effect 2 for Player 1 (Red) at Frozen_Wrath_Point facing (Facing of Caster) degrees
          • Unit - Make Caster Invulnerable
          • Unit Group - Pick every unit in (Units within 400.00 of (Position of Caster)) and do (Actions)
            • Loop - Actions
              • Unit - Cause Caster to damage circular area after 0.00 seconds of radius 500.00 at (Center of (Playable map area)), dealing 10.00 damage of attack type Hero and damage type Universal
              • Unit - Make Caster Vulnerable
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Frozen Wrath for Caster) Equal to 2
                • Then - Actions
                  • Unit Group - Pick every unit in (Units within 600.00 of (Center of (Playable map area))) and do (Actions)
                    • Loop - Actions
                      • Unit - Make Caster Invulnerable
                      • Unit - Cause Caster to damage circular area after 0.00 seconds of radius 500.00 at (Position of Caster), dealing 30.00 damage of attack type Hero and damage type Universal
                      • Unit - Make Caster Vulnerable
                • Else - Actions
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Damage circular area function damages all units in the area.
His unit is already invulnerable



his caster is invulnerable. does "Damage Circular Area" also damage invulnerables?
Invulnerable is immune to Unit - Damage Area/Target function (tested)




I see you got a dummy to cast Flame Strike, 6 times
Does it has damage and can damage yourself ?

Also, try putting the action making your unit invulnerable to the top of the script and put the action making your unit vulnerable to the most bottom of the script.

If Flame Strike has damage too, why will he die if he's invulnerable...
 
Status
Not open for further replies.
Top