[1.6.6]Error spawning Reaver with staff

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
starsapphire
Thalore
Posts: 132
Joined: Sat Sep 27, 2014 11:33 am
Location: Irkkk

[1.6.6]Error spawning Reaver with staff

#1 Post 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.

Post Reply