• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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