This commit is contained in:
Oleg Agafonov 2025-01-17 20:34:19 +04:00
parent 1f7af53dbb
commit ad26810281

View file

@ -73,11 +73,11 @@ class MysticSubdualEffect extends ContinuousEffectImpl {
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getSourceId()); Permanent permanent = game.getPermanent(source.getSourceId());
if (permanent == null) { if (permanent == null) {
return true; return false;
} }
Permanent creature = game.getPermanent(permanent.getAttachedTo()); Permanent creature = game.getPermanent(permanent.getAttachedTo());
if (creature == null) { if (creature == null) {
return true; return false;
} }
creature.removeAllAbilities(source.getSourceId(), game); creature.removeAllAbilities(source.getSourceId(), game);
return true; return true;