• 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.

[Spell] Metaorphis glitches with added abilitys - need help!

Status
Not open for further replies.
Level 9
Joined
May 31, 2010
Messages
366
Hey, i have a hero with the metamorphose ability of the demonhunter from nightelves, if i add a new ability to my hero by triggers something like all attributes + 1 (based on item or hero ability - does not matter) or any other ability - when he metamorphs he loses those added abilitys and even if he morphes back he wont gain them back!
any idea of how i could do a work arround on that?
 
Level 23
Joined
Oct 20, 2012
Messages
3,075
How to: Make Spellbooks
Andrewgosu said:
WHY DO MY SPELLS DISAPPEAR FROM THE SPELLBOOK AFTER TRANSFORMATION/METAMORPHISM ETC.

This is because the abilities inside the spellbook are not permanent; they are gained via a spellbook.

To fix this issue, you must make the ability permanent. The only way is to use a piece of custom script because the action is not accessible via GUI:

„call UnitMakeAbilityPermanent(whichUnit, true, abilCode)“

Replace whichUnit with the unit who has the ability and abilCode with the raw code of the ability.

That's basically it.
 
Level 9
Joined
May 31, 2010
Messages
366
so abilitys added by trigger are not permanently? okay thx!

but btw.: the unit also has a hidden spell book with a ability based of brilliance aura (just to apply a special effect), the buff and the effect dissapear during the metamorph but when it turns back into normal form, the effect and the buff are applied again
 
Status
Not open for further replies.
Top