瀏覽代碼

Workaround for very slow boat summon tests

Ivan Savenko 1 年之前
父節點
當前提交
b5c36958a9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      AI/Nullkiller/Pathfinding/Actions/BoatActions.cpp

+ 2 - 1
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);
 	}
 }