Erwan
- Fix issue 105 (threaten on own creature)
This commit is contained in:
@@ -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
|
||||
|
||||
21
projects/mtg/bin/Res/test/threaten.txt
Normal file
21
projects/mtg/bin/Res/test/threaten.txt
Normal 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]
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user