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

Double Damage

Status
Not open for further replies.
Level 10
Joined
Nov 3, 2009
Messages
686
Hey...

How to make that when unit cast an ability and target unit of ability being cast have buff would deal double damage instead of normal? :)


It's like from World of Warcraft - Flame Shock + Lava Burst(50Dmg) = Lava Burst(100 Dmg) deal critical strike(100 Dmg double damage), when only Lava Burst it deal normal damage.
 
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to X
  • Actions
    • Set BaseDamage = 200.00
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • ((Target unit of ability being cast) has Buff) Equal to True
      • Then - Actions
        • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast) dealing (BaseDamage*2.00) of attack type Spells and damage type Normal
      • Else - Actions
        • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast) dealing (BaseDamage) of attack type Spells and damage type Normal
The condition is Boolean Comparison, Unit - Unit has specific buff.
BaseDamage is a variable of type "Real".
 
Status
Not open for further replies.
Top