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

[General] Modified Unit Damage

Status
Not open for further replies.
Level 4
Joined
Aug 2, 2015
Messages
63
Is there a way to make this function permanently because if i modified a unit then the unit use morph ability the modified damage became normal.
Code:
native BlzSetUnitBaseDamage                        takes unit whichUnit, integer baseDamage, integer weaponIndex returns nothing
 
Level 3
Joined
Aug 12, 2010
Messages
29
From my understanding of how morph abilities work is essentially replacing the unit with a new one. Your best bet would be saving their current damage through variables and updating the damage when morphing back and fourth.
 
Status
Not open for further replies.
Top