• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Spell] Morphing and Abilities?

Status
Not open for further replies.
Level 7
Joined
Nov 18, 2012
Messages
272
I know if a unit is morphing, it will not retain the previous abilities, so they will be lost upon transformation if added via trigger.

I know that some heroes retain their learned hero abilities.

What I don't know is: Do morphing heroes who learned/gained abilities they don't usually have (for instance I give a Tinker a Holy Light Ability) still get them after transforming into another hero (for instance, via Robo Goblin)?
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
I know if a unit is morphing, it will not retain the previous abilities, so they will be lost upon transformation if added via trigger.

I know that some heroes retain their learned hero abilities.

What I don't know is: Do morphing heroes who learned/gained abilities they don't usually have (for instance I give a Tinker a Holy Light Ability) still get them after transforming into another hero (for instance, via Robo Goblin)?

If both forms have the ability by default, then yes.
Else no.

However, you can force an ability to stay on the hero by making it permanent.
JASS:
call UnitMakeAbilityPermanent(unit,boolean permanent?,ability id)
 
Status
Not open for further replies.
Top