Explorar o código

Workaround for very slow boat summon tests

Ivan Savenko hai 1 ano
pai
achega
b5c36958a9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);
 	}
 }