-fix for issue 120
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-11-03 10:12:01 +00:00
parent a7034bbcb4
commit d2bcb90799
3 changed files with 30 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ bottle_gnomes.txt
bottle_gnomes2.txt
boggart_arsonists.txt
brass_man.txt
cage_of_hands.txt
Call_to_Heel_1.txt
Call_to_Heel_2.txt
castle.txt

View File

@@ -0,0 +1,24 @@
#Bug:Cage of hands doesn't return to its owner's hand
[INIT]
FIRSTMAIN
[PLAYER1]
hand:cage of hands
manapool:{2}{W}
inplay:swamp,plains
[PLAYER2]
inplay:grizzly bears
[DO]
cage of hands
grizzly bears
plains
swamp
cage of hands
[ASSERT]
FIRSTMAIN
[PLAYER1]
hand:cage of hands
inplay:swamp,plains
manapool:{0}
[PLAYER2]
inplay:grizzly bears
[END]

View File

@@ -401,6 +401,11 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
if (found != string::npos){
int end = s.find(")",found+1);
string szone = s.substr(found + 7,end - found - 7);
//hack for http://code.google.com/p/wagic/issues/detail?id=120
//We assume that auras don't move their own target...
if (card->hasType("aura")) target = card;
MTGAbility * a = NEW AAMover(id,card,target,szone);
a->oneShot = 1;
return a;