After some revisions, BestowTest is now fully passed! Now to fix the other tests that don't anymore...

This commit is contained in:
Kevin Shin 2018-08-25 04:43:38 -05:00
parent e1bfd8a196
commit 3ffd812bc6
3 changed files with 10 additions and 11 deletions

View file

@ -1981,10 +1981,10 @@ public abstract class GameImpl implements Game, Serializable {
Card card = this.getCard(perm.getId());
if (card != null && card.isCreature()) {
//TODO: cleanup
//UUID wasAttachedTo = perm.getAttachedTo();
//perm.attachTo(null, this);
//BestowAbility.becomeCreature(perm, this);
//fireEvent(new GameEvent(GameEvent.EventType.UNATTACHED, wasAttachedTo, perm.getId(), perm.getControllerId()));
UUID wasAttachedTo = perm.getAttachedTo();
perm.attachTo(null, this);
BestowAbility.becomeCreature(perm, this);
fireEvent(new GameEvent(GameEvent.EventType.UNATTACHED, wasAttachedTo, perm.getId(), perm.getControllerId()));
} else if (movePermanentToGraveyardWithInfo(perm)) {
somethingHappened = true;
}
@ -2001,11 +2001,10 @@ public abstract class GameImpl implements Game, Serializable {
// handle bestow unattachment
Card card = this.getCard(perm.getId());
if (card != null && card.isCreature()) {
//TODO: cleanup
//UUID wasAttachedTo = perm.getAttachedTo();
//perm.attachTo(null, this);
//BestowAbility.becomeCreature(perm, this);
//fireEvent(new GameEvent(GameEvent.EventType.UNATTACHED, wasAttachedTo, perm.getId(), perm.getControllerId()));
UUID wasAttachedTo = perm.getAttachedTo();
perm.attachTo(null, this);
BestowAbility.becomeCreature(perm, this);
fireEvent(new GameEvent(GameEvent.EventType.UNATTACHED, wasAttachedTo, perm.getId(), perm.getControllerId()));
} else if (movePermanentToGraveyardWithInfo(perm)) {
somethingHappened = true;
}