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

[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