- fix for issue 348
- Fix a bug when going out of the deck editor then back to it again would show an incorrect color icon instead of nothing
- Fix a bug where the AI tries to play a spell with a target instead of just checking if it can play it. (visually, this showed as the AI tapping mana, then "freezing" for a few seconds with some cards grayed out on the battlefield)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-03-04 11:43:22 +00:00
parent 882724ab4b
commit cf1e419aaf
4 changed files with 4 additions and 2 deletions

View File

@@ -391,8 +391,9 @@ int AIPlayer::chooseTarget(TargetChooser * _tc, Player * forceTarget){
//Couldn't find any valid target,
//usually that's because we played a card that has bad side effects (ex: when X comes into play, return target land you own to your hand)
//so we try again to choose a target in the other player's field...
if (checkOnly) return 0;
int cancel = gameObs->cancelCurrentAction();
if (!cancel && !forceTarget) return chooseTarget(_tc,target->opponent());
if ( !cancel && !forceTarget) return chooseTarget(_tc,target->opponent());
//ERROR!!!
return 0;