[VOW] fixed Wedding Invitation boosting non-vampire creatures

This commit is contained in:
Evan Kranzler 2022-04-12 18:04:04 -04:00
parent f541d7fac4
commit 0c71717f14

View file

@ -15,6 +15,7 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.common.TargetCreaturePermanent;
@ -71,7 +72,7 @@ class WeddingInvitationEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getFirstTarget());
if (permanent == null) {
if (permanent == null || !permanent.hasSubtype(SubType.VAMPIRE, game)) {
return false;
}
game.addEffect(new GainAbilityTargetEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn), source);