- selling a card in the deck editor doesn't move back to the first card anymore
- added a few tests, unconfirmed bugs for elvish piper and deja vu
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-04-05 06:15:13 +00:00
parent 89caaaadb4
commit 853d14c8cc
5 changed files with 44 additions and 4 deletions

View File

@@ -275,7 +275,7 @@ auto=moveTo(myHand)
id=4259
name=Deja vu
rarity=C
mana={2}{B}
mana={2}{U}
type=Sorcery
[/card]
[card]

View File

@@ -40,10 +40,12 @@ counsel_of_the_soratami.txt
counterspell.txt
counterspell2.txt
creature_bond.txt
deja_vu.txt
dingus_egg.txt
doomed_necromancer.txt
dragon_fodder.txt
drain_life.txt
elvish_piper.txt
fastbond.txt
flare.txt
foratog.txt

View File

@@ -0,0 +1,20 @@
# Deja Vu Return target sorcery card from your graveyard to your hand.
#bug: is not a sorcery when it resolves, instead it is shown as "Error"
[INIT]
FIRSTMAIN
[PLAYER1]
hand:deja vu
graveyard:fireball
manapool:{2}{U}
[PLAYER2]
[DO]
deja vu
fireball
[ASSERT]
FIRSTMAIN
[PLAYER1]
hand:fireball
graveyard:deja vu
manapool:{0}
[PLAYER2]
[END]

View File

@@ -0,0 +1,18 @@
# {G},{T}: You may put a creature card from your hand into play.
[INIT]
FIRSTMAIN
[PLAYER1]
hand:grizzly bears
inplay:elvish piper
manapool:{G}
[PLAYER2]
[DO]
elvish piper
grizzly bears
[ASSERT]
FIRSTMAIN
[PLAYER1]
inplay:elvish piper,grizzly bears
manapool:{0}
[PLAYER2]
[END]

View File

@@ -267,7 +267,7 @@ class GameStateDeckViewer: public GameState, public JGuiListener
int Remove(MTGCard * card){
if (!card) return 0;
int result = displayed_deck->Remove(card);
loadIndexes(currentCard);
//loadIndexes(currentCard);
return result;
}
@@ -326,7 +326,7 @@ class GameStateDeckViewer: public GameState, public JGuiListener
char buffer[4096];
{
MTGCard * card = cardIndex[2];
if (card){
if (card && displayed_deck->cards[card]){
int rnd = (rand() % 20);
price = pricelist->getPrice(card->getMTGId()) / 2;
price = price - price * (rnd -10)/100;
@@ -777,8 +777,8 @@ class GameStateDeckViewer: public GameState, public JGuiListener
MTGCard * card = cardIndex[2];
if (card){
int rnd = (rand() % 20);
price = price - (rnd * price)/100;
playerdata->credits += price;
price = price - (rnd * price)/100;
pricelist->setPrice(card->getMTGId(),price*2);
#if defined (WIN32) || defined (LINUX)
char buf[4096];