From 71e9a3b2ccfc6182ac9cc1849634846807facf6b Mon Sep 17 00:00:00 2001 From: "jean.chalard" Date: Fri, 28 Aug 2009 14:22:06 +0000 Subject: [PATCH] J : * Attempt not to display when it's not my turn. Does not work because of the internals of GameObs, will ask when I get the chance --- projects/mtg/src/GuiCombat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/mtg/src/GuiCombat.cpp b/projects/mtg/src/GuiCombat.cpp index 71ce9d6e5..d0dc9fb56 100644 --- a/projects/mtg/src/GuiCombat.cpp +++ b/projects/mtg/src/GuiCombat.cpp @@ -182,6 +182,7 @@ int GuiCombat::receiveEventMinus(WEvent* e) else if (WEventBlockersAssigned* event = dynamic_cast(e)) { if (active) return 0; // Why do I take this event twice >.> + if (go->currentlyActing()->isAI()) return 0; unsigned size = 0; for (vector::iterator it = attackers.begin(); it != attackers.end(); ++it) if (1 < (*it)->blockers.size()) ++size;