The beast is now afraid of the portal

This commit is contained in:
Howard Abrams 2025-06-17 20:00:11 -07:00
parent cc673a5c7a
commit cd51424f7c

View file

@ -479,6 +479,13 @@ class BHB(Friendly):
meadow = self.global_search("mp05")
cave = self.global_search("mp07")
if 'portal_open' in self.location:
msg = f"The {noun} becomes frightened of the flying lights."
self.location.msg_contents(msg)
self.move_to(cave, move_type="traverse")
return
if self.db.is_awake and self.location != meadow:
self.move_to(meadow, move_type="traverse")
elif not self.db.is_awake and self.location != cave: