Page 1 of 1

[1.6.6]Error spawning Reaver with staff

Posted: Thu Jan 30, 2020 5:22 am
by starsapphire
Randboss Reaver with a staff in his hand may cause a bug.
Example filter to spawn this enemy in Debug mode Random Actor dialog:

Code: Select all

{random_boss={force_classes={Reaver=true, Archmage=true}, nb_classes=0}}
Cause of the problem:

When an enemy is added to level, if it have a staff, it will automatically use Command Staff to alter its element.
However, because Command Staff is a spell, it will trigger a Corrupted Strength free melee attack.
And when the enemy is not on the map, it will cause an error upon calling util.adjacentCoords.