From 52ea815193fe244863b501a0ae50967f1a9a2fe4 Mon Sep 17 00:00:00 2001 From: "wagic.laurent" Date: Fri, 22 May 2009 14:41:51 +0000 Subject: [PATCH] Laurent - Some cards addition (TMP -> serene offering alias of divine offering from LEG also in MRD) MRD added Seed of innocence INV added aura and artifact mutation (but strange reaction if you bury target from opponent)... works anyway... test it and you will understand... ;) --- projects/mtg/bin/Res/sets/INV/_cards.dat | 19 ++++++++++++++ projects/mtg/bin/Res/sets/INV/todo.dat | 17 +------------ projects/mtg/bin/Res/sets/MIR/_cards.dat | 18 +++++++++++++ projects/mtg/bin/Res/sets/MIR/todo.dat | 24 ------------------ projects/mtg/bin/Res/sets/TMP/_cards.dat | 10 ++++++++ projects/mtg/bin/Res/sets/TMP/todo.dat | 8 ------ projects/mtg/src/MTGAbility.cpp | 32 ++++++++++++++++++++++++ 7 files changed, 80 insertions(+), 48 deletions(-) diff --git a/projects/mtg/bin/Res/sets/INV/_cards.dat b/projects/mtg/bin/Res/sets/INV/_cards.dat index f50392e8a..cd6cff7c3 100644 --- a/projects/mtg/bin/Res/sets/INV/_cards.dat +++ b/projects/mtg/bin/Res/sets/INV/_cards.dat @@ -114,6 +114,25 @@ power=2 toughness=5 [/card] [card] +text=Destroy target artifact. It can't be regenerated. Put X 1/1 green Saproling creature tokens into play, where X is its converted mana cost. +id=23195 +target=artifact +name=Artifact Mutation +rarity=R +type=Instant +mana={R}{G} +[/card] +[card] +text=Destroy target enchantment. Put X 1/1 green Saproling creature tokens into play, where X is its converted mana cost. +id=23184 +target=aura +alias=23195 +name=Aura Mutation +rarity=R +type=Instant +mana={G}{W} +[/card] +[card] text={3}{U},{T}: Draw a card. id=22947 name=Benalish Heralds diff --git a/projects/mtg/bin/Res/sets/INV/todo.dat b/projects/mtg/bin/Res/sets/INV/todo.dat index bc3a0910f..288e71747 100644 --- a/projects/mtg/bin/Res/sets/INV/todo.dat +++ b/projects/mtg/bin/Res/sets/INV/todo.dat @@ -98,14 +98,6 @@ subtype=Cat Soldier toughness=5 [/card] [card] -text=Destroy target artifact. It can't be regenerated. Put X 1/1 green Saproling creature tokens into play, where X is its converted mana cost. -id=23195 -name=Artifact Mutation -rarity=R -type=Instant -mana={R}{G} -[/card] -[card] text=Assault deals 2 damage to target creature or player. // Put a 3/3 green Elephant creature token into play. id=20579 name=Assault // Battery @@ -132,14 +124,7 @@ power=2 subtype=Human Cleric toughness=3 [/card] -[card] -text=Destroy target enchantment. Put X 1/1 green Saproling creature tokens into play, where X is its converted mana cost. -id=23184 -name=Aura Mutation -rarity=R -type=Instant -mana={G}{W} -[/card] + [card] text=Whenever a creature comes into play under your control, you may destroy target artifact or enchantment. id=23152 diff --git a/projects/mtg/bin/Res/sets/MIR/_cards.dat b/projects/mtg/bin/Res/sets/MIR/_cards.dat index a3182d69f..9b9194d5a 100644 --- a/projects/mtg/bin/Res/sets/MIR/_cards.dat +++ b/projects/mtg/bin/Res/sets/MIR/_cards.dat @@ -168,6 +168,16 @@ mana={1}{W} rarity=C [/card] [card] +text=Destroy target artifact. You gain life equal to its converted mana cost. +id=3486 +target=artifact +alias=1607 +name=Divine Offering +rarity=C +type=Instant +mana={1}{W} +[/card] +[card] text={2}{R}, {T}: Destroy target nonbasic land. auto={2}{R}{T}:destroy target(land[-basic]) id=3440 @@ -701,6 +711,14 @@ toughness=1 rarity=C [/card] [card] +text=Destroy all artifacts. They can't be regenerated. The controller of each artifact destroyed this way gains life equal to its converted mana cost. +id=3410 +name=Seeds of Innocence +rarity=R +type=Sorcery +mana={1}{G}{G} +[/card] +[card] text=Destroy all Auras. id=3411 name=Serene Heart diff --git a/projects/mtg/bin/Res/sets/MIR/todo.dat b/projects/mtg/bin/Res/sets/MIR/todo.dat index 438b75e30..aaf8136c9 100644 --- a/projects/mtg/bin/Res/sets/MIR/todo.dat +++ b/projects/mtg/bin/Res/sets/MIR/todo.dat @@ -693,14 +693,6 @@ type=Instant mana={1}{U}{U} [/card] [card] -text=Destroy target artifact. You gain life equal to its converted mana cost. -id=3486 -name=Divine Offering -rarity=C -type=Instant -mana={1}{W} -[/card] -[card] text=Divine Retribution deals damage to target attacking creature equal to the number of attacking creatures. id=3487 name=Divine Retribution @@ -2417,22 +2409,6 @@ type=Instant mana={G} [/card] [card] -text=Destroy all artifacts. They can't be regenerated. The controller of each artifact destroyed this way gains life equal to its converted mana cost. -id=3410 -name=Seeds of Innocence -rarity=R -type=Sorcery -mana={1}{G}{G} -[/card] -[card] -text=Destroy all Auras. -id=3411 -name=Serene Heart -rarity=C -type=Instant -mana={1}{G} -[/card] -[card] text={B}, Pay 1 life: Sewer Rats gets +1/+0 until end of turn. Play this ability no more than three times each turn. id=3308 name=Sewer Rats diff --git a/projects/mtg/bin/Res/sets/TMP/_cards.dat b/projects/mtg/bin/Res/sets/TMP/_cards.dat index 2454f6c0c..74cb277ca 100644 --- a/projects/mtg/bin/Res/sets/TMP/_cards.dat +++ b/projects/mtg/bin/Res/sets/TMP/_cards.dat @@ -1325,6 +1325,16 @@ power=2 toughness=1 [/card] [card] +text=Destroy target enchantment. You gain life equal to its converted mana cost. +id=4898 +target=enchantment +alias=1607 +name=Serene Offering +rarity=U +type=Instant +mana={1}{W} +[/card] +[card] text=Target creature gains shadow until end of turn. Draw a card. target=creature auto=shadow diff --git a/projects/mtg/bin/Res/sets/TMP/todo.dat b/projects/mtg/bin/Res/sets/TMP/todo.dat index a0b7cb444..da02abe1a 100644 --- a/projects/mtg/bin/Res/sets/TMP/todo.dat +++ b/projects/mtg/bin/Res/sets/TMP/todo.dat @@ -1513,14 +1513,6 @@ subtype=Angel toughness=3 [/card] [card] -text=Destroy target enchantment. You gain life equal to its converted mana cost. -id=4898 -name=Serene Offering -rarity=U -type=Instant -mana={1}{W} -[/card] -[card] text=When Servant of Volrath leaves play, sacrifice a creature. id=4685 name=Servant of Volrath diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index b72b44cb8..c4af93a0f 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -1710,6 +1710,23 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){ break; } +// --- addon Mirage --- + + case 3410: //Seed of Innocence + { + GameObserver * game = GameObserver::GetInstance(); + for (int i = 0; i < 2 ; i++){ + for (int j = 0; j < game->players[i]->game->inPlay->nb_cards; j++){ + MTGCardInstance * current = game->players[i]->game->inPlay->cards[j]; + if (current->hasType("Artifact")){ + game->players[i]->game->putInGraveyard(current); + current->controller()->life-= current->getManaCost()->getConvertedCost(); + } + } + } + break; + } + //-- addon 10E--- case 129523: //Demon's Horn { @@ -1753,12 +1770,27 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){ game->currentlyActing()->life+=damage_life; break; } + +// --- addon Invasion--- + case 23195: //Artifact Mutation (works fine but display is strange if you bury a target from opponent, need to wait your turn to have the token put in play) + { + card->target->controller()->game->putInGraveyard(card->target); + int x = card->target->getManaCost()->getConvertedCost(); + ATokenCreator * tok = NEW ATokenCreator(id,card,NEW ManaCost(),"Saproling token","creature",1,1,"green",0); + for (int i=0; i < x; i++){ + tok->resolve(); + } + delete tok; + break; + } + default: break; } + /* Erwan - 2008/11/13: We want to get rid of these basicAbility things. * basicAbilities themselves are alright, but creating new object depending on them is dangerous * The main reason is that classes that add an ability to a card do NOT create these objects, and therefore do NOT