Added action logging during attack/block of the AI player. To do that, I wrapped some of the direct access from the player to the action layer into the game observer.

First version where I managed to finish a normal game while undoing several actions until the end. There are still some problems in direct damage spells and interruption management. I added several assert in the code to catch them.
This commit is contained in:
Xawotihs
2011-10-16 22:16:47 +00:00
parent 8554076f3c
commit 84a074aede
5 changed files with 198 additions and 124 deletions

View File

@@ -53,7 +53,7 @@ int AIAction::Act()
}
if (ability)
{
g->mLayers->actionLayer()->reactToClick(ability, click);
g->cardClick(click, ability);
if (target && !mAbilityTargets.size())
{
g->cardClick(target);