Added some tests.

This commit is contained in:
LevelX2 2015-05-22 15:16:29 +02:00
parent 467a11b4cd
commit 38865e2495
3 changed files with 83 additions and 1 deletions

View file

@ -143,6 +143,7 @@ class SidisiBroodTyrantTriggeredAbility extends ZoneChangeTriggeredAbility {
if (stackObject == null) {
stackObject = (StackObject) game.getLastKnownInformation(event.getSourceId(), Zone.STACK);
}
// If multiple cards go to graveyard from replacement effect (e.g. Dredge) each card is wrongly handled as a new event
if (stackObject != null) {
if (stackObject.getId().equals(lastStackObjectId)) {
return false; // was already handled