Erwan
- Fix issue #16 (testsuite segfaults if file does not exist) - Fix issue #37 (Normal Combat Damage is not dealt to creatures when the AI attacks) - TestSuite now has an "AI" mode (see test/manual/p2_attacks.txt)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../include/config.h"
|
||||
#include "../include/GameApp.h"
|
||||
#include "../include/GuiCombat.h"
|
||||
#include "../include/AIPlayer.h"
|
||||
#include "Closest.cpp"
|
||||
|
||||
static const float MARGIN = 70;
|
||||
@@ -469,7 +470,7 @@ int GuiCombat::receiveEventMinus(WEvent* e)
|
||||
case DAMAGE: DAMAGE:
|
||||
step = event->step;
|
||||
if (!go->currentPlayer->displayStack()) {
|
||||
//resolve();
|
||||
((AIPlayer *)go->currentPlayer)->affectCombatDamages(step);
|
||||
go->nextGamePhase();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user