* Living Lore - Fixed that it did not get the +1/+1 counters as it entered the battlefield.

This commit is contained in:
LevelX2 2015-10-21 17:02:51 +02:00
parent 353ddd9dfe
commit f7c354afd3
3 changed files with 24 additions and 29 deletions

View file

@ -36,7 +36,6 @@ import mage.constants.Layer;
import mage.constants.Outcome;
import mage.constants.SubLayer;
import mage.game.Game;
import mage.game.permanent.Permanent;
/**
*
@ -75,19 +74,17 @@ public class SetPowerToughnessSourceEffect extends ContinuousEffectImpl {
@Override
public boolean apply(Game game, Ability source) {
MageObject mageObject = game.getObject(source.getSourceId());
MageObject mageObject = game.getPermanentEntering(source.getSourceId());
if (mageObject == null) {
game.getPermanentEntering(source.getSourceId());
if (duration.equals(Duration.Custom) || isTemporary()) {
mageObject = game.getPermanent(source.getSourceId());
} else {
mageObject = game.getObject(source.getSourceId());
}
}
if (mageObject == null) {
if (duration.equals(Duration.Custom)) {
discard();
}
return false;
} else if (isTemporary()) { // it's somehow w
if (!(mageObject instanceof Permanent)) {
return false;
}
discard();
return true;
}
if (amount != null) {
int value = amount.calculate(game, source, this);