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

Spell damage reduction/multiplyer

Status
Not open for further replies.
Level 4
Joined
Oct 11, 2008
Messages
90
I have two spells: a Firebolt and a Frostbolt. Each of them deals 100 damage, the first on fire damage, the second one frost damage. But when the Firebolt is cast on a Golem, i want it to deal double damage (200) and when the Frostbolt is cast on a Golem it will deal half damage (50).
How to do that?
 
Level 6
Joined
Jan 27, 2007
Messages
208
Use a simple trigger for each spell.

Firebolt
  • Firebolt
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Firebolt
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Target unit of ability being cast)) Equal to Golem
        • Then - Actions
          • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 200.00 damage of attack type Spells and damage type Normal
        • Else - Actions
          • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 100.00 damage of attack type Spells and damage type Normal
same goes for Frostbolt
 
Status
Not open for further replies.
Top