- fixed compilation issues
- fixed bug with persuasion
This commit is contained in:
wagic.the.homebrew
2009-03-18 10:39:38 +00:00
parent bc7c689eab
commit 070e24ec7a
6 changed files with 9 additions and 22 deletions
-4
View File
@@ -18,10 +18,6 @@
48592 48592
48592 48592
48592 48592
139476
139476
139476
139476
1303 1303
1303 1303
1303 1303
-4
View File
@@ -14,10 +14,6 @@
175062 175062
175062 175062
175062 175062
139476
139476
139476
139476
1264 1264
1264 1264
1264 1264
+4 -4
View File
@@ -601,7 +601,7 @@ subtype=Elemental
toughness=5 toughness=5
[/card] [/card]
[card] [card]
text=Enchant creature When Earthbind comes into play, if enchanted creature has flying, Earthbind deals 2 damage to that creature and Earthbind gains "Enchanted creature loses flying." text=Enchant creature When Earthbind comes into play, if enchanted creature has flying, Earthbind deals 2 damage to that creature and Earthbind gains "Enchanted creature loses flying."
target=creature target=creature
id=1288 id=1288
name=Earthbind name=Earthbind
@@ -670,7 +670,7 @@ type=Instant
mana={W}{W} mana={W}{W}
[/card] [/card]
[card] [card]
text=Enchant land Enchanted land has "At the beginning of your upkeep, you may pay {W}{W}. If you do, you gain 1 life." text=Enchant land Enchanted land has "At the beginning of your upkeep, you may pay {W}{W}. If you do, you gain 1 life."
target=land target=land
id=1345 id=1345
name=Farmstead name=Farmstead
@@ -1508,7 +1508,7 @@ subtype=Thopter
toughness=2 toughness=2
[/card] [/card]
[card] [card]
text=Enchant creature When Paralyze comes into play, tap enchanted creature. Enchanted creature doesn't untap during its controller's untap step. Enchanted creature has "At the beginning of your upkeep, you may pay {4}. If you do, untap this creature." text=Enchant creature When Paralyze comes into play, tap enchanted creature. Enchanted creature doesn't untap during its controller's untap step. Enchanted creature has "At the beginning of your upkeep, you may pay {4}. If you do, untap this creature."
target=creature target=creature
id=1171 id=1171
name=Paralyze name=Paralyze
@@ -2485,7 +2485,7 @@ type=Sorcery
mana={2}{W}{W} mana={2}{W}{W}
[/card] [/card]
[card] [card]
text=Zombie creatures have swampwalk. All Zombies have "{B}: Regenerate this permanent." text=Zombie creatures have swampwalk. All Zombies have "{B}: Regenerate this permanent."
auto=lord(zombie) swampwalk auto=lord(zombie) swampwalk
auto=lord(zombie) {B}:regenerate auto=lord(zombie) {B}:regenerate
id=1188 id=1188
+1
View File
@@ -68,6 +68,7 @@ Nyxathid.txt
orcish_lumberjack.txt orcish_lumberjack.txt
paralysis.txt paralysis.txt
paralysis2.txt paralysis2.txt
persuasion.txt
plague_rats.txt plague_rats.txt
protomatter_powder.txt protomatter_powder.txt
resurrection.txt resurrection.txt
+1 -1
View File
@@ -201,7 +201,7 @@ int MTGCardInstance::hasSummoningSickness(){
int MTGCardInstance::changeController(Player * newController){ int MTGCardInstance::changeController(Player * newController){
Player * originalOwner = controller(); Player * originalOwner = controller();
if (originalOwner == newController) return 0; if (originalOwner == newController) return 0;
MTGCardInstance * copy = originalOwner->game->inPlay->removeCard(this); MTGCardInstance * copy = originalOwner->game->inPlay->removeCard(this,0);
newController->game->inPlay->addCard(copy); newController->game->inPlay->addCard(copy);
//summoningSickness = 1; //summoningSickness = 1;
return 1; return 1;
+3 -9
View File
@@ -95,14 +95,9 @@ MTGCardInstance * MTGPlayerCards::putInGraveyard(MTGCardInstance * card){
MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone * from, MTGGameZone * to){ MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone * from, MTGGameZone * to){
MTGCardInstance * copy = NULL; MTGCardInstance * copy = NULL;
//Special case, a card is not a new object if it goes from inplay to inplay, because it technically doesn't change zone GameObserver *g = GameObserver::GetInstance();
int newObject = 1;
if ((from = g->players[0]->game->inPlay || from = g->players[1]->game->inPlay) && if (copy = from->removeCard(card)){
(to = g->players[0]->game->inPlay || to = g->players[1]->game->inPlay) {
newObject = 0;
}
if (copy = from->removeCard(card,newObject)){
if (GameOptions::GetInstance()->values[OPTIONS_SFXVOLUME].getIntValue() > 0){ if (GameOptions::GetInstance()->values[OPTIONS_SFXVOLUME].getIntValue() > 0){
if (to == graveyard){ if (to == graveyard){
@@ -114,7 +109,6 @@ MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone
} }
if (card->isToken){ if (card->isToken){
GameObserver *g = GameObserver::GetInstance();
if (to != g->players[0]->game->inPlay && to != g->players[1]->game->inPlay){ if (to != g->players[0]->game->inPlay && to != g->players[1]->game->inPlay){
//Token leaves play: we destroy it //Token leaves play: we destroy it
//TODO DELETE Object //TODO DELETE Object