Fix for issue 749 (autohand/autograveyard/etc... don't work for player2)

This commit is contained in:
wagic.the.homebrew
2011-10-30 09:35:04 +00:00
parent 1806e5463d
commit 53b9bc412f
3 changed files with 28 additions and 1 deletions

View File

@@ -512,6 +512,7 @@ rampant_growth.txt
rancid_earth_with_threshold.txt
rancid_earth_without_threshold.txt
rancor.txt
rancor_i749.txt
ray_of_command.txt
ray_of_command_i176.txt
razor_golem.txt

View File

@@ -0,0 +1,27 @@
#http://code.google.com/p/wagic/issues/detail?id=749
# @movedTo triggers don't trigger for the AI
#When Rancor is put into a graveyard from the battlefield, return Rancor to its owner's hand.
[INIT]
SECONDMAIN
[PLAYER1]
[PLAYER2]
inplay:Llanowar Elves,forest,mountain
hand:Rancor,Shock
[DO]
eot
goto firstmain
Forest
Rancor
Llanowar Elves
Mountain
Shock
Llanowar Elves
[ASSERT]
FIRSTMAIN
[PLAYER1]
[PLAYER2]
graveyard:Llanowar Elves,Shock
hand:Rancor
inplay:forest,mountain
manapool:{0}
[END]

View File

@@ -2708,7 +2708,6 @@ int AbilityFactory::getAbilities(vector<MTGAbility *> * v, Spell * spell, MTGCar
break;
}
//Other zones needed ?
return 0;
}
}
else