From b5c36958a9d7600883779e755684bd762463c01c Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Thu, 4 Jul 2024 19:56:01 +0000 Subject: [PATCH] Workaround for very slow boat summon tests --- AI/Nullkiller/Pathfinding/Actions/BoatActions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AI/Nullkiller/Pathfinding/Actions/BoatActions.cpp b/AI/Nullkiller/Pathfinding/Actions/BoatActions.cpp index d255dcb1e..548792412 100644 --- a/AI/Nullkiller/Pathfinding/Actions/BoatActions.cpp +++ b/AI/Nullkiller/Pathfinding/Actions/BoatActions.cpp @@ -141,7 +141,8 @@ namespace AIPathfinding { SpellID summonBoat = SpellID::SUMMON_BOAT; - return hero->getSpellCost(summonBoat.toSpell()); + // FIXME: this should be hero->getSpellCost, however currently queries to bonus system are too slow + return summonBoat.toSpell()->getCost(0); } }