Fix bug in fishing

Something is seriously wrong with the "search" feature.
This commit is contained in:
Howard Abrams 2025-06-25 19:44:15 -07:00
parent 294ae2fa35
commit c23a9856c9

View file

@ -198,7 +198,7 @@ class FishingPole(Object):
self.cmdset.add_default(CmdSetFishing)
def do_cast(self, fisher):
if fisher.location != fisher.search("Lazy Dock", quiet=True):
if fisher.location.key != "Lazy Dock":
fisher.msg("You can't do that without being near the water.")
elif fisher.db.fishing == Fishing.CAST:
fisher.msg("You need to reel the line in first.")