From 6da34f642f21b112605f8b8ce89bd1236de1ab45 Mon Sep 17 00:00:00 2001 From: Psyyringe Date: Sat, 5 Dec 2009 08:31:09 +0000 Subject: [PATCH] Psyringe - fixed issue 230. Also softcoded Braingeyser (RV) and Stroke of Genius (USG) and removed interfering obsolete hardcode for Braingeyser. Please review, this is my first attempt of moving hardcode to softcode. --- projects/mtg/bin/Res/sets/MOR/_cards.dat | 2 +- projects/mtg/bin/Res/sets/RV/_cards.dat | 1 + projects/mtg/bin/Res/sets/USG/_cards.dat | 2 +- projects/mtg/src/MTGAbility.cpp | 9 --------- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/projects/mtg/bin/Res/sets/MOR/_cards.dat b/projects/mtg/bin/Res/sets/MOR/_cards.dat index 287ad000a..3cb7ac971 100644 --- a/projects/mtg/bin/Res/sets/MOR/_cards.dat +++ b/projects/mtg/bin/Res/sets/MOR/_cards.dat @@ -172,9 +172,9 @@ type=Sorcery [/card] [card] text=Draw X cards. +auto=draw:X controller id=152628 name=Mind Spring -alias=1192 rarity=R mana={X}{U}{U} type=Sorcery diff --git a/projects/mtg/bin/Res/sets/RV/_cards.dat b/projects/mtg/bin/Res/sets/RV/_cards.dat index 4c16ae3ba..d8e9195a6 100644 --- a/projects/mtg/bin/Res/sets/RV/_cards.dat +++ b/projects/mtg/bin/Res/sets/RV/_cards.dat @@ -241,6 +241,7 @@ abilities=swampwalk [card] text=Target player draws X cards. target=player +auto=draw:X id=1192 name=Braingeyser rarity=R diff --git a/projects/mtg/bin/Res/sets/USG/_cards.dat b/projects/mtg/bin/Res/sets/USG/_cards.dat index 1f8c731ff..f234ef4d1 100644 --- a/projects/mtg/bin/Res/sets/USG/_cards.dat +++ b/projects/mtg/bin/Res/sets/USG/_cards.dat @@ -1166,7 +1166,7 @@ mana={2}{R} [card] text=Target player draws X cards. target=player -alias=1192 +auto=draw:X id=5677 name=Stroke of Genius rarity=R diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 6e00fbeff..b4c53acc1 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -1263,15 +1263,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){ } break; } - case 1192: //BrainGeyser - { - Player * player = spell->getNextPlayerTarget(); - int x = spell->cost->getConvertedCost() - 2; - for (int i = 0; i < x ; i++){ - player->game->drawFromLibrary(); - } - break; - } case 1194: //Control Magic { game->addObserver(NEW AControlStealAura(_id, card, card->target));