1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Nullkiller: cancel heavy decomposition on shipyards

This commit is contained in:
Andrii Danylchenko
2021-05-16 15:09:44 +03:00
committed by Andrii Danylchenko
parent 9a203b8af9
commit 1aa81530cb
9 changed files with 106 additions and 7 deletions

View File

@@ -11,7 +11,7 @@
#include "StdInc.h"
#include "../../VCAI.h"
#include "../../Goals/AdventureSpellCast.h"
#include "../../Behaviors/CaptureObjectsBehavior.h"
#include "../../Goals/CaptureObject.h"
#include "../../Goals/BuildBoat.h"
#include "../../../../lib/mapping/CMap.h"
#include "../../../../lib/mapObjects/MapObjects.h"
@@ -31,7 +31,7 @@ namespace AIPathfinding
{
if(cb->getPlayerRelations(ai->playerID, shipyard->o->tempOwner) == PlayerRelations::ENEMIES)
{
return Goals::sptr(Goals::CaptureObjectsBehavior(shipyard->o));
return Goals::sptr(Goals::CaptureObject(shipyard->o));
}
return sptr(Goals::Invalid());