Correction of Temple Altisaur's script

The effect shouldn't apply on the card itself, the text says:
If a source would deal damage to another Dinosaur you control, prevent all but 1 of that damage.
master
Lucien Pereira 2020-06-17 21:56:57 +02:00 committed by Melvin Zhang
parent b976afb965
commit 53d5fa8827
1 changed files with 2 additions and 0 deletions

View File

@ -2,8 +2,10 @@
new IfDamageWouldBeDealtTrigger(MagicTrigger.PREVENT_DAMAGE) {
@Override
public boolean accept(final MagicPermanent permanent, final MagicDamage damage) {
// If a source would deal damage to another Dinosaur you control, prevent all but 1 of that damage.
return super.accept(permanent, damage) &&
damage.getTarget().hasSubType(MagicSubType.Dinosaur) &&
!permanent.equals(damage.getTarget()) &&
permanent.isFriend(damage.getTarget());
}
@Override