- Aftermath keyword works again. Added test for Aftermath keyword.

This commit is contained in:
Achilles 2018-01-12 23:58:38 -06:00
parent a0bd835e34
commit 7ade17595d
2 changed files with 32 additions and 5 deletions

View file

@ -1342,11 +1342,7 @@ public abstract class PlayerImpl implements Player, Serializable {
}
}
}
UUID sourceId = object.getId();
if (object instanceof SplitCardHalf) {
sourceId = ((SplitCardHalf) object).getParentCard().getId();
}
if (zone != Zone.BATTLEFIELD && game.getContinuousEffects().asThough(sourceId, AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, playerId, game)) {
if (zone != Zone.BATTLEFIELD && game.getContinuousEffects().asThough(object.getId(), AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, this.getId(), game)) {
for (Ability ability : candidateAbilites) {
if (canUse || ability.getAbilityType() == AbilityType.SPECIAL_ACTION) {
ability.setControllerId(this.getId());