mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
[AFR] Implemented Ochre Jelly
This commit is contained in:
parent
f9bf84e6f6
commit
d42fd2e505
4 changed files with 121 additions and 1 deletions
|
|
@ -77,4 +77,9 @@ public class CreateDelayedTriggeredAbilityEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String key, Object value) {
|
||||
ability.getEffects().setValue(key, value);
|
||||
super.setValue(key, value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
private boolean isntLegendary = false;
|
||||
private int startingLoyalty = -1;
|
||||
private final List<Ability> additionalAbilities = new ArrayList();
|
||||
private Permanent savedPermanent = null;
|
||||
|
||||
public CreateTokenCopyTargetEffect(boolean useLKI) {
|
||||
this();
|
||||
|
|
@ -133,7 +134,9 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
targetId = getTargetPointer().getFirst(game, source);
|
||||
}
|
||||
Permanent permanent;
|
||||
if (useLKI) {
|
||||
if (savedPermanent != null) {
|
||||
permanent = savedPermanent;
|
||||
} else if (useLKI) {
|
||||
permanent = getTargetPointer().getFirstTargetPermanentOrLKI(game, source);
|
||||
} else {
|
||||
permanent = game.getPermanentOrLKIBattlefield(targetId);
|
||||
|
|
@ -319,4 +322,8 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
public void addAdditionalAbilities(Ability... abilities) {
|
||||
Arrays.stream(abilities).forEach(this.additionalAbilities::add);
|
||||
}
|
||||
|
||||
public void setSavedPermanent(Permanent savedPermanent) {
|
||||
this.savedPermanent = savedPermanent;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue