From f8ca5b2cc5f72e5775a13ceaf7a47508326a503c Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 5 Dec 2020 14:48:43 +0100 Subject: [PATCH] Recalculate the path finder when the player exchanges its body --- squirrelbattle/entities/items.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/squirrelbattle/entities/items.py b/squirrelbattle/entities/items.py index 2405a7f..e90ec32 100644 --- a/squirrelbattle/entities/items.py +++ b/squirrelbattle/entities/items.py @@ -173,4 +173,6 @@ class BodySnatchPotion(Item): player=self.held_by.translated_name.capitalize(), entity=entity.translated_name)) + self.held_by.recalculate_paths() + self.held_by.inventory.remove(self)