Recalculate the path finder when the player exchanges its body

This commit is contained in:
Yohann D'ANELLO 2020-12-05 14:48:43 +01:00
parent 7ad2cad77c
commit f8ca5b2cc5
1 changed files with 2 additions and 0 deletions

View File

@ -173,4 +173,6 @@ class BodySnatchPotion(Item):
player=self.held_by.translated_name.capitalize(), player=self.held_by.translated_name.capitalize(),
entity=entity.translated_name)) entity=entity.translated_name))
self.held_by.recalculate_paths()
self.held_by.inventory.remove(self) self.held_by.inventory.remove(self)