1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Fix HoTA guard once again

(cherry picked from commit 138a7c8024573f46962ad0f6e8e03ba53fa56076)
This commit is contained in:
Tomasz Zieliński
2023-07-18 09:53:14 +02:00
parent 7b06c41929
commit 545f047cae
2 changed files with 10 additions and 2 deletions

View File

@ -606,8 +606,6 @@ bool ObjectManager::addGuard(rmg::Object & object, si32 strength, bool zoneGuard
auto & instance = object.addInstance(*guard);
instance.setPosition(guardPos - object.getPosition());
instance.setAnyTemplate(); //terrain is irrelevant for monsters, but monsters need some template now
//Make up for extra offset in HotA creature templates
instance.setPosition(instance.getPosition() + instance.object().getVisitableOffset());
return true;
}