- fix issue 228 (cockatrice VS regenerate)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-01-15 14:44:55 +00:00
parent 866f1c3e1c
commit fea7985212
3 changed files with 30 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ clone.txt
clone2.txt
clone3.txt
cockatrice.txt
cockatrice_i228.txt
colossus_of_sardia1.txt
colossus_of_sardia2.txt
composite_golem.txt

View File

@@ -0,0 +1,28 @@
#Bug: Regenerate should prevent cokcatrice's effect
#see http://code.google.com/p/wagic/issues/detail?id=228
[INIT]
COMBATATTACKERS
[PLAYER1]
inplay:Charging Troll,forest
[PLAYER2]
inplay:cockatrice
[DO]
Charging Troll
next
#blockers
cockatrice
next
yes
forest
Charging Troll
endinterruption
#damage
next
#end combat
[ASSERT]
COMBATEND
[PLAYER1]
inplay:Charging Troll,forest
[PLAYER2]
inplay:cockatrice
[END]

View File

@@ -2134,7 +2134,7 @@ class AOldSchoolDeathtouch:public MTGAbility{
}
}else if (newPhase == Constants::MTG_PHASE_COMBATEND){
for (int i = 0; i < nbOpponents ; i++){
game->mLayers->stackLayer()->addPutInGraveyard(opponents[i]);
opponents[i]->destroy();
}
}
}