- Fix: cards in graveyard had shroud
- Fix :shop item "quantity" increased if bought in a booster
- Test for Recover -> no problem found, but there's a GUI issue, which will be fixed later
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-06-11 11:48:02 +00:00
parent a959cbf926
commit 8a467da18f
5 changed files with 31 additions and 3 deletions

View File

@@ -105,6 +105,7 @@ persuasion.txt
plague_rats.txt
protomatter_powder.txt
pyroclasm.txt
recover.txt
resurrection.txt
rootwalla.txt
royal_assassin.txt

View File

@@ -0,0 +1,20 @@
#Bug: Recover leaves a copy of target card in the graveyard
[INIT]
FIRSTMAIN
[PLAYER1]
hand:recover (INV)
graveyard:grizzly bears
library:swamp
manapool:{2}{B}
[PLAYER2]
[DO]
recover (INV)
grizzly bears
[ASSERT]
FIRSTMAIN
[PLAYER1]
graveyard:recover (INV)
hand:grizzly bears,swamp
manapool:{0}
[PLAYER2]
[END]

View File

@@ -122,7 +122,7 @@ void GameStateMenu::Create()
}
currentState = MENU_STATE_MAJOR_LOADING_CARDS | MENU_STATE_MINOR_NONE;
scroller = NEW TextScroller(GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT), SCREEN_WIDTH/2 - 100 , SCREEN_HEIGHT-15,200);
scroller = NEW TextScroller(GameApp::CommonRes->GetJLBFont(Constants::MAIN_FONT), SCREEN_WIDTH/2 - 90 , SCREEN_HEIGHT-17,180);
scrollerSet = 0;
}
@@ -228,7 +228,7 @@ void GameStateMenu::fillScroller(){
delete playerdata;
scroller->Add(buff2);
scroller->Add(_("Need more cards? Go to http://wololo.net/wagic"));
scroller->Add(_("More cards and mods at http://wololo.net/wagic"));
scroller->Add(_("These stats will be updated next time you run Wagic"));
@@ -472,6 +472,7 @@ void GameStateMenu::Render()
mFont->SetScale(1.f);
mFont->SetColor(ARGB(255,255,255,255));
renderer->FillRoundRect(SCREEN_WIDTH/2 - 100,SCREEN_HEIGHT-20, 191,6,5,ARGB(100,10,5,0));
scroller->Render();
if (subMenuController){

View File

@@ -268,6 +268,12 @@ void ShopItems::ButtonPressed(int controllerId, int controlId){
display->AddCard(card);
i++;
}
for (int j = 0; j < mCount; j++){
ShopItem * si = ((ShopItem *)mObjects[j]);
if (si->card && si->card->name.compare(c->name) == 0){
si->nameCount+= it->second;
}
}
}
delete tempDeck;
}

View File

@@ -274,7 +274,7 @@ TargetChooser::TargetChooser(MTGCardInstance * card, int _maxtargets): TargetsLi
int TargetChooser::canTarget(Targetable * target){
if (target->typeAsTarget() == TARGET_CARD){
MTGCardInstance * card = (MTGCardInstance *) target;
if (source && (card->protectedAgainst(source) || card->has(Constants::SHROUD))) return 0;
if (source && card->isInPlay() && (card->has(Constants::SHROUD)|| card->protectedAgainst(source) )) return 0;
return 1;
}else if (target->typeAsTarget() == TARGET_STACKACTION){
return 1;