From 08b6779d5992b0a1804d09c889f221b8a0983317 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Thu, 2 Dec 2010 18:43:39 +0000 Subject: [PATCH] forcing Ai to attack with creature that have "treason" ( the ability that sacrifices cards like ball lightining at end of turn) since the creature is going to die anyways, might as well send it in and see if it can kill something. and yes i consider ai being THAT stupid a bug :P --- projects/mtg/src/MTGRules.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/MTGRules.cpp b/projects/mtg/src/MTGRules.cpp index d2697e4fb..1df0a20d7 100644 --- a/projects/mtg/src/MTGRules.cpp +++ b/projects/mtg/src/MTGRules.cpp @@ -1014,6 +1014,8 @@ int MTGAttackRule::receiveEvent(WEvent *e) { MTGCardInstance * card = z->cards[i]; if (!card->isAttacker() && card->has(Constants::MUSTATTACK)) + reactToClick(card); + if (!card->isAttacker() && card->has(Constants::TREASON) && p->isAI()) reactToClick(card); if (card->isAttacker() && card->isTapped()) card->setAttacker(0);