quick combat vs ai
This commit is contained in:
1 parent
891d25a634
commit
7f58333ef9
7 files changed
+34
-26
No files matched your search
@@ -16,6 +16,8 @@
|
||||
#include "../battles/BattleProcessor.h"
|
||||
|
||||
#include "../../lib/battle/IBattleState.h"
|
||||
#include "../../lib/battle/SideInBattle.h"
|
||||
#include "../../lib/CPlayerState.h"
|
||||
#include "../../lib/mapObjects/CGObjectInstance.h"
|
||||
#include "../../lib/networkPacks/PacksForServer.h"
|
||||
#include "../../lib/serializer/Cast.h"
|
||||
@@ -83,6 +85,9 @@ CBattleDialogQuery::CBattleDialogQuery(CGameHandler * owner, const IBattleInfo *
|
||||
|
||||
void CBattleDialogQuery::onRemoval(PlayerColor color)
|
||||
{
|
||||
if (!gh->getPlayerState(color)->isHuman())
|
||||
return;
|
||||
|
||||
assert(answer);
|
||||
if(*answer == 1)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user