Erwan
- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user