I have created this caster unit with several abilities. The ability witch I think is causing the ability is the permanent invisibility contained in the second level of an dummy spellbook ability. When you upgrade the sorceress upgrade level 2 the dummy spellbook upgrades too, enabling the permanent invisibility within it. I created that complicated dummy spell both because perm invi doesn't have an icon and because perm invi weirdly also activates even when the upgrade requirements aren't met.
Now to the bug: when I build the caster everything is fine and they can't still become invisible (this is intended). When I do the upgrade while having these caster units still everything is fine and the casters become invisible. When I build casters AFTER I do the upgrade the game crashes generating no error message.
Does anybody have ideas how to fix this?
Now to the bug: when I build the caster everything is fine and they can't still become invisible (this is intended). When I do the upgrade while having these caster units still everything is fine and the casters become invisible. When I build casters AFTER I do the upgrade the game crashes generating no error message.
Does anybody have ideas how to fix this?