only trigger if damage is dealt by permanent
parent
4725523588
commit
7cbbae3c12
|
@ -30,7 +30,9 @@ public abstract class MagicWhenDamageIsDealtTrigger extends MagicTrigger<MagicDa
|
||||||
return new MagicWhenDamageIsDealtTrigger() {
|
return new MagicWhenDamageIsDealtTrigger() {
|
||||||
@Override
|
@Override
|
||||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
||||||
return (damage.isCombat() && damage.getTarget().isPlayer()) ?
|
return (damage.getSource() == permanent &&
|
||||||
|
damage.isCombat() &&
|
||||||
|
damage.getTarget().isPlayer()) ?
|
||||||
new MagicEvent(
|
new MagicEvent(
|
||||||
permanent,
|
permanent,
|
||||||
new MagicMayChoice(),
|
new MagicMayChoice(),
|
||||||
|
|
Loading…
Reference in New Issue