forked from External/mage
- Aftermath keyword works again. Added test for Aftermath keyword.
This commit is contained in:
parent
a0bd835e34
commit
7ade17595d
2 changed files with 32 additions and 5 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue