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

How to deal damage to unit?

Status
Not open for further replies.
Level 2
Joined
Sep 2, 2004
Messages
15
What kind of combination will deal SPELL damage, like Stormbolt and other spells. I'm asking, because I want the magic effect of 33% magic reduction, etc, to take effect.

UnitDamageTarget(whichUnit, target, amount, true, false, whichAttack, whichDamage, WEAPON_TYPE_WHOKNOWS)
 
Status
Not open for further replies.
Top