From 49b6b028c54f2156f8cf004808477666c4e93823 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sun, 7 Apr 2013 17:30:48 +0000 Subject: [PATCH] fixed a bug with alwaysattack hint, if there was an attack readied it would undo it by clicking it the second time. --- projects/mtg/src/AIPlayerBaka.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/AIPlayerBaka.cpp b/projects/mtg/src/AIPlayerBaka.cpp index 8547fcea9..907be04b6 100644 --- a/projects/mtg/src/AIPlayerBaka.cpp +++ b/projects/mtg/src/AIPlayerBaka.cpp @@ -2240,7 +2240,8 @@ int AIPlayerBaka::chooseAttackers() { if(hints && hints->HintSaysDontAttack(observer,card)) continue; - observer->cardClick(card, MTGAbility::MTG_ATTACK_RULE); + if(!card->isAttacker()) + observer->cardClick(card, MTGAbility::MTG_ATTACK_RULE); } } return 1;