- Joined
- Feb 27, 2019
- Messages
- 401
Hello,
I restarted developments from an old map (namely X Hero Siege 3.33).
I noticed something strange in this map.
The following auras:
- Aura of Blight
- Command aura
- Life Regeneration Aura
- War Drums Aura
That are all coded the a strange way, always the same :
- A "dummy" hero ability with 4 levels (just tooltips)
- 4 aura unit skills (with aura attributes: dataA1, Area1, targs1... & tooltip), 1 per level
- 1 trigger executed when hero learns a skill = the "dummy" ability, unlearns the unit skill of level N-1 and learns unit skill of level N with a MakeAbilityPermanent.
Any idea of why not just a simple 4levels hero aura skill ???
Was it necessary by the past ? For example because the ability was not levelable ?
Is it still necessary or can I clean it ?
I restarted developments from an old map (namely X Hero Siege 3.33).
I noticed something strange in this map.
The following auras:
- Aura of Blight
- Command aura
- Life Regeneration Aura
- War Drums Aura
That are all coded the a strange way, always the same :
- A "dummy" hero ability with 4 levels (just tooltips)
- 4 aura unit skills (with aura attributes: dataA1, Area1, targs1... & tooltip), 1 per level
- 1 trigger executed when hero learns a skill = the "dummy" ability, unlearns the unit skill of level N-1 and learns unit skill of level N with a MakeAbilityPermanent.
Any idea of why not just a simple 4levels hero aura skill ???
Was it necessary by the past ? For example because the ability was not levelable ?
Is it still necessary or can I clean it ?