- Fix issue 105 (threaten on own creature)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-10-15 14:36:24 +00:00
parent 97a0732682
commit 0e74773b57
3 changed files with 23 additions and 1 deletions

View File

@@ -223,6 +223,7 @@ sword_to_plowshares.txt
telekinetic_sliver.txt
terror.txt
terror2.txt
threaten.txt
titanic_ultimatum.txt
torture.txt
tranquil_domain.txt

View File

@@ -0,0 +1,21 @@
#Bug: Threaten on own creature crashes the game
# http://code.google.com/p/wagic/issues/detail?id=105
[INIT]
FIRSTMAIN
[PLAYER1]
inplay:grizzly bears
hand:threaten
manapool:{2}{R}
[PLAYER2]
[DO]
threaten
grizzly bears
eot
eot
[ASSERT]
UNTAP
[PLAYER1]
inplay:grizzly bears
graveyard:threaten
[PLAYER2]
[END]

View File

@@ -294,7 +294,7 @@ int MTGCardInstance::hasSummoningSickness(){
MTGCardInstance * MTGCardInstance::changeController(Player * newController){
Player * originalOwner = controller();
if (originalOwner == newController) return 0;
if (originalOwner == newController) return this;
MTGCardInstance * copy = originalOwner->game->putInZone(this, originalOwner->game->inPlay, newController->game->inPlay);
copy->summoningSickness = 1;
return copy;