Erwan
- 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:
@@ -275,7 +275,7 @@ auto=moveTo(myHand)
|
|||||||
id=4259
|
id=4259
|
||||||
name=Deja vu
|
name=Deja vu
|
||||||
rarity=C
|
rarity=C
|
||||||
mana={2}{B}
|
mana={2}{U}
|
||||||
type=Sorcery
|
type=Sorcery
|
||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
|
|||||||
@@ -40,10 +40,12 @@ counsel_of_the_soratami.txt
|
|||||||
counterspell.txt
|
counterspell.txt
|
||||||
counterspell2.txt
|
counterspell2.txt
|
||||||
creature_bond.txt
|
creature_bond.txt
|
||||||
|
deja_vu.txt
|
||||||
dingus_egg.txt
|
dingus_egg.txt
|
||||||
doomed_necromancer.txt
|
doomed_necromancer.txt
|
||||||
dragon_fodder.txt
|
dragon_fodder.txt
|
||||||
drain_life.txt
|
drain_life.txt
|
||||||
|
elvish_piper.txt
|
||||||
fastbond.txt
|
fastbond.txt
|
||||||
flare.txt
|
flare.txt
|
||||||
foratog.txt
|
foratog.txt
|
||||||
|
|||||||
@@ -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]
|
||||||
@@ -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]
|
||||||
@@ -267,7 +267,7 @@ class GameStateDeckViewer: public GameState, public JGuiListener
|
|||||||
int Remove(MTGCard * card){
|
int Remove(MTGCard * card){
|
||||||
if (!card) return 0;
|
if (!card) return 0;
|
||||||
int result = displayed_deck->Remove(card);
|
int result = displayed_deck->Remove(card);
|
||||||
loadIndexes(currentCard);
|
//loadIndexes(currentCard);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,7 +326,7 @@ class GameStateDeckViewer: public GameState, public JGuiListener
|
|||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
{
|
{
|
||||||
MTGCard * card = cardIndex[2];
|
MTGCard * card = cardIndex[2];
|
||||||
if (card){
|
if (card && displayed_deck->cards[card]){
|
||||||
int rnd = (rand() % 20);
|
int rnd = (rand() % 20);
|
||||||
price = pricelist->getPrice(card->getMTGId()) / 2;
|
price = pricelist->getPrice(card->getMTGId()) / 2;
|
||||||
price = price - price * (rnd -10)/100;
|
price = price - price * (rnd -10)/100;
|
||||||
@@ -777,8 +777,8 @@ class GameStateDeckViewer: public GameState, public JGuiListener
|
|||||||
MTGCard * card = cardIndex[2];
|
MTGCard * card = cardIndex[2];
|
||||||
if (card){
|
if (card){
|
||||||
int rnd = (rand() % 20);
|
int rnd = (rand() % 20);
|
||||||
price = price - (rnd * price)/100;
|
|
||||||
playerdata->credits += price;
|
playerdata->credits += price;
|
||||||
|
price = price - (rnd * price)/100;
|
||||||
pricelist->setPrice(card->getMTGId(),price*2);
|
pricelist->setPrice(card->getMTGId(),price*2);
|
||||||
#if defined (WIN32) || defined (LINUX)
|
#if defined (WIN32) || defined (LINUX)
|
||||||
char buf[4096];
|
char buf[4096];
|
||||||
|
|||||||
Reference in New Issue
Block a user