mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fix: Pyre-Sledge Arsonist, Public Enemy, Reckoner Shakedown, Kami's Flare (#9875)
This commit is contained in:
parent
469fd64f05
commit
a2a57e0f14
4 changed files with 11 additions and 2 deletions
|
@ -48,6 +48,7 @@ class KamisFlareEffect extends OneShotEffect {
|
|||
|
||||
static {
|
||||
filter.add(ModifiedPredicate.instance);
|
||||
filter.add(CardType.CREATURE.getPredicate());
|
||||
}
|
||||
|
||||
private static final Hint hint = new ConditionHint(
|
||||
|
|
|
@ -75,6 +75,14 @@ class PublicEnemyEffect extends RequirementEffect {
|
|||
|
||||
@Override
|
||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||
Permanent enchantment = game.getPermanent(source.getSourceId());
|
||||
Permanent enchantedCreature = game.getPermanent(enchantment.getAttachedTo());
|
||||
if (enchantment == null || enchantedCreature == null) {
|
||||
return false;
|
||||
}
|
||||
if (permanent.isControlledBy(enchantedCreature.getControllerId())) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class PyreSledgeArsonist extends CardImpl {
|
|||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability.addHint(hint));
|
||||
this.addAbility(ability.addHint(hint), new PyreSledgeArsonistWatcher());
|
||||
}
|
||||
|
||||
private PyreSledgeArsonist(final PyreSledgeArsonist card) {
|
||||
|
|
|
@ -93,7 +93,7 @@ class ReckonerShakedownEffect extends OneShotEffect {
|
|||
}
|
||||
TargetPermanent targetPermanent = new TargetPermanent(filter);
|
||||
targetPermanent.setNotTarget(true);
|
||||
player.choose(Outcome.BoostCreature, targetPermanent, source, game);
|
||||
controller.choose(Outcome.BoostCreature, targetPermanent, source, game);
|
||||
Permanent permanent = game.getPermanent(targetPermanent.getFirstTarget());
|
||||
if (permanent != null) {
|
||||
permanent.addCounters(CounterType.P1P1.createInstance(2), source, game);
|
||||
|
|
Loading…
Reference in a new issue