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

Cold damage via triggers broken? (Not adding slowed effect)

Level 12
Joined
Feb 5, 2018
Messages
521
I made this very simple spell. I remember that in some version 1.3X the cold damage trough triggers actually added the "Slowed" effect from cold damage.

It's been some time since I created anything, I reinstalled my windows and forgot to save my stuff into cloud. So I could remember wrong.

See the spell below. Latest patch, HD graphics.


  • Ice Blast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ice Blast
    • Actions
      • Set VariableSet IceBlast_Caster = (Triggering unit)
      • Set VariableSet IceBlast_Owner = (Owner of IceBlast_Caster)
      • Set VariableSet IceBlast_Level = (Level of Ice Blast for IceBlast_Caster)
      • Set VariableSet IceBlast_Damage = (90.00 x (Real((Level of Ice Blast for IceBlast_Caster))))
      • Set VariableSet IceBlast_Loc = (Target point of ability being cast)
      • Special Effect - Create a special effect at IceBlast_Loc using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
      • Set VariableSet IceBlast_SFX = (Last created special effect)
      • Special Effect - Set Scale of IceBlast_SFX to 3.50
      • Special Effect - Destroy IceBlast_SFX
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 250.00 of IceBlast_Loc matching (((Matching unit) belongs to an enemy of IceBlast_Owner.) Equal to True).) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is Mechanical) Equal to False
              • ((Picked unit) is invulnerable) Equal to False
              • ((Picked unit) is A structure) Equal to False
              • ((Picked unit) is Magic Immune) Equal to False
              • ((Picked unit) is alive) Equal to True
            • Then - Actions
              • Set VariableSet IceBlast_Target = (Picked unit)
              • Unit - Cause IceBlast_Caster to damage IceBlast_Target, dealing IceBlast_Damage damage of attack type Spells and damage type Cold
            • Else - Actions
              • -------- Filter only --------
      • Custom script: call RemoveLocation(udg_IceBlast_Loc)
 
Level 12
Joined
Feb 5, 2018
Messages
521
Yea I mimic the effect by casting a modified slow with a dummy unit. Sad that it didn't work directly with the triggered cold damage thought.
 
Top