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,6 +391,7 @@ int AIPlayer::chooseTarget(TargetChooser * _tc, Player * forceTarget){
|
|||||||
//Couldn't find any valid target,
|
//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)
|
//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...
|
//so we try again to choose a target in the other player's field...
|
||||||
|
if (checkOnly) return 0;
|
||||||
int cancel = gameObs->cancelCurrentAction();
|
int cancel = gameObs->cancelCurrentAction();
|
||||||
if ( !cancel && !forceTarget) return chooseTarget(_tc,target->opponent());
|
if ( !cancel && !forceTarget) return chooseTarget(_tc,target->opponent());
|
||||||
|
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ void GameStateDeckViewer::Start()
|
|||||||
mAlpha = 255;
|
mAlpha = 255;
|
||||||
last_user_activity = NO_USER_ACTIVITY_HELP_DELAY + 1;
|
last_user_activity = NO_USER_ACTIVITY_HELP_DELAY + 1;
|
||||||
onScreenTransition = 0;
|
onScreenTransition = 0;
|
||||||
|
useFilter = 0;
|
||||||
|
|
||||||
pricelist = NEW PriceList(RESPATH"/settings/prices.dat",mParent->collection);
|
pricelist = NEW PriceList(RESPATH"/settings/prices.dat",mParent->collection);
|
||||||
playerdata = NEW PlayerData(mParent->collection);
|
playerdata = NEW PlayerData(mParent->collection);
|
||||||
|
|||||||
@@ -304,7 +304,6 @@ void GameStateShop::load(){
|
|||||||
int nbsets = 0;
|
int nbsets = 0;
|
||||||
int nbboostersets = 0;
|
int nbboostersets = 0;
|
||||||
|
|
||||||
JQuad * mBackThumb = resources.GetQuad("back_thumb");
|
|
||||||
for(int i=0;i<BOOSTER_SLOTS;i++){
|
for(int i=0;i<BOOSTER_SLOTS;i++){
|
||||||
mBooster[i].randomize(packlist);
|
mBooster[i].randomize(packlist);
|
||||||
mInventory[i] = 1+rand()%mBooster[i].maxInventory();
|
mInventory[i] = 1+rand()%mBooster[i].maxInventory();
|
||||||
|
|||||||
@@ -1161,6 +1161,7 @@ void WGuiCardImage::Render(){
|
|||||||
else
|
else
|
||||||
q = resources.GetQuad("back");
|
q = resources.GetQuad("back");
|
||||||
float scale = p.actZ * 257.f / q->mHeight;
|
float scale = p.actZ * 257.f / q->mHeight;
|
||||||
|
q->SetColor(ARGB(255,255,255,255));
|
||||||
renderer->RenderQuad(q,p.x,p.y,0,scale,scale);
|
renderer->RenderQuad(q,p.x,p.y,0,scale,scale);
|
||||||
}else{ //Have card.
|
}else{ //Have card.
|
||||||
if(bThumb){ //Thumbnail.
|
if(bThumb){ //Thumbnail.
|
||||||
|
|||||||
Reference in New Issue
Block a user