mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[AFR] Froghemoth - Remove unneeded getPlayer calls
This commit is contained in:
parent
18b7d40ba3
commit
8e3b246f59
1 changed files with 5 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue