Erwan
- Fix issue 105 (threaten on own creature)
This commit is contained in:
@@ -223,6 +223,7 @@ sword_to_plowshares.txt
|
|||||||
telekinetic_sliver.txt
|
telekinetic_sliver.txt
|
||||||
terror.txt
|
terror.txt
|
||||||
terror2.txt
|
terror2.txt
|
||||||
|
threaten.txt
|
||||||
titanic_ultimatum.txt
|
titanic_ultimatum.txt
|
||||||
torture.txt
|
torture.txt
|
||||||
tranquil_domain.txt
|
tranquil_domain.txt
|
||||||
|
|||||||
@@ -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){
|
MTGCardInstance * MTGCardInstance::changeController(Player * newController){
|
||||||
Player * originalOwner = controller();
|
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);
|
MTGCardInstance * copy = originalOwner->game->putInZone(this, originalOwner->game->inPlay, newController->game->inPlay);
|
||||||
copy->summoningSickness = 1;
|
copy->summoningSickness = 1;
|
||||||
return copy;
|
return copy;
|
||||||
|
|||||||
Reference in New Issue
Block a user