* Escaped Shapeshifter - fixed that it doesn't count Escaped Shapeshifter to apply effect;

This commit is contained in:
Oleg Agafonov 2019-11-29 22:20:23 +04:00
parent 7998e31da6
commit 11f5ae5b59

View file

@ -72,7 +72,7 @@ class EscapedShapeshifterEffect extends ContinuousEffectImpl {
source.getControllerId(), source.getSourceId(), game
).stream()
.filter(Objects::nonNull)
.filter(permanent -> permanent.getName() != "Escaped Shapeshifter")
.filter(permanent -> !permanent.getName().equals(sourcePermanent.getName()))
.map(Permanent::getAbilities)
.flatMap(Collection::stream).filter(EscapedShapeshifterEffect::checkAbility)
.forEach(ability -> sourcePermanent.addAbility(ability, source.getSourceId(), game));