corrected an issue where ai was able to ignore lure ability

This commit is contained in:
omegablast2002@yahoo.com
2013-01-24 21:04:23 +00:00
parent fccedcaaab
commit 798258798c
2 changed files with 3 additions and 2 deletions

View File

@@ -619,7 +619,8 @@ int MTGCardInstance::canBlock(MTGCardInstance * opponent)
return 0;
if (opponent->basicAbilities[(int)Constants::FEAR] && !(this->hasType(Subtypes::TYPE_ARTIFACT) || this->hasColor(Constants::MTG_COLOR_BLACK)))
return 0;
if (opponent->controller()->game->battlefield->hasAbility(Constants::LURE) && !opponent->has(Constants::LURE))
return 0;
//intimidate
if (opponent->basicAbilities[(int)Constants::INTIMIDATE] && !(this->hasType(Subtypes::TYPE_ARTIFACT)))
{

View File

@@ -1563,7 +1563,7 @@ int MTGBlockRule::reactToClick(MTGCardInstance * card)
currentOpponent = game->currentPlayer->game->inPlay->getNextAttacker(currentOpponent);
if(lured && currentOpponent && !currentOpponent->has(Constants::LURE))
currentOpponent = game->currentPlayer->game->inPlay->getNextAttacker(currentOpponent);
currentOpponent = game->currentPlayer->game->inPlay->getNextLurer(currentOpponent);
canDefend = card->toggleDefenser(currentOpponent);
DebugTrace("Defenser Toggle: " << card->getName() << endl