From 8e3b246f590af2c36c0c743078ef50a53498dd25 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Thu, 1 Jul 2021 21:30:22 -0500 Subject: [PATCH] [AFR] Froghemoth - Remove unneeded getPlayer calls --- Mage.Sets/src/mage/cards/f/Froghemoth.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Mage.Sets/src/mage/cards/f/Froghemoth.java b/Mage.Sets/src/mage/cards/f/Froghemoth.java index f3666f62c4..63c469ad52 100644 --- a/Mage.Sets/src/mage/cards/f/Froghemoth.java +++ b/Mage.Sets/src/mage/cards/f/Froghemoth.java @@ -78,15 +78,11 @@ class FroghemothTriggeredAbility extends DealsCombatDamageToAPlayerTriggeredAbil @Override public boolean checkTrigger(GameEvent event, Game game) { if (super.checkTrigger(event, game)) { - Player controller = game.getPlayer(getControllerId()); - Player damagedPlayer = game.getPlayer(event.getPlayerId()); - if (controller != null && damagedPlayer != null) { - FilterCard filter = new FilterCard("cards from defender's graveyard"); - filter.add(new OwnerIdPredicate(damagedPlayer.getId())); - this.getTargets().clear(); - this.addTarget(new TargetCardInGraveyard(0, event.getAmount(), filter)); - return true; - } + FilterCard filter = new FilterCard("cards from defender's graveyard"); + filter.add(new OwnerIdPredicate(event.getPlayerId())); + this.getTargets().clear(); + this.addTarget(new TargetCardInGraveyard(0, event.getAmount(), filter)); + return true; } return false; }