1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-10 17:00:08 -09:00

* Aven Mimeomancer - Fixed that P/T setting persists after target zone change (fixes ).

This commit is contained in:
LevelX2 2020-07-07 16:41:34 +02:00
parent ba0bbd02e7
commit 019bbafd20

View file

@ -71,7 +71,7 @@ class AvenEffect extends ContinuousEffectImpl {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Permanent target = game.getPermanent(source.getFirstTarget()); Permanent target = game.getPermanent(getTargetPointer().getFirst(game, source));
if (target != null) { if (target != null) {
target.getPower().setValue(3); target.getPower().setValue(3);
target.getToughness().setValue(1); target.getToughness().setValue(1);
@ -82,7 +82,7 @@ class AvenEffect extends ContinuousEffectImpl {
@Override @Override
public boolean isInactive(Ability source, Game game) { public boolean isInactive(Ability source, Game game) {
Permanent creature = game.getPermanent(this.targetPointer.getFirst(game, source)); Permanent creature = game.getPermanent(getTargetPointer().getFirst(game, source));
if (creature != null && creature.getCounters(game).getCount(CounterType.FEATHER) < 1) { if (creature != null && creature.getCounters(game).getCount(CounterType.FEATHER) < 1) {
return true; return true;
} }
@ -112,7 +112,7 @@ class AvenEffect2 extends ContinuousEffectImpl {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Permanent target = game.getPermanent(source.getFirstTarget()); Permanent target = game.getPermanent(getTargetPointer().getFirst(game, source));
if (target != null) { if (target != null) {
if (!target.getAbilities().contains(FlyingAbility.getInstance())) { if (!target.getAbilities().contains(FlyingAbility.getInstance())) {
target.addAbility(FlyingAbility.getInstance(), source.getSourceId(), game); target.addAbility(FlyingAbility.getInstance(), source.getSourceId(), game);
@ -124,7 +124,7 @@ class AvenEffect2 extends ContinuousEffectImpl {
@Override @Override
public boolean isInactive(Ability source, Game game) { public boolean isInactive(Ability source, Game game) {
Permanent creature = game.getPermanent(this.targetPointer.getFirst(game, source)); Permanent creature = game.getPermanent(getTargetPointer().getFirst(game, source));
if (creature != null && creature.getCounters(game).getCount(CounterType.FEATHER) < 1) { if (creature != null && creature.getCounters(game).getCount(CounterType.FEATHER) < 1) {
return true; return true;
} }