Fix Maarika, Brutal Gladiator trigger to use LKI. (#12507)

* Fix Maarika, Brutal Gladiator trigger to use LKI.

Fixes #8775

* Fix more instances of getting permanent or LKI from first target.

* Two more instances of getting permanent or LKI from first target.
This commit is contained in:
Grath 2024-06-22 17:55:03 -04:00 committed by GitHub
parent aa216dc742
commit f96343eec8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 11 additions and 11 deletions

View file

@ -69,7 +69,7 @@ public class DoUnlessTargetPlayerOrTargetsControllerPaysEffect extends OneShotEf
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(this.getTargetPointer().getFirst(game, source));
Permanent targetPermanent = game.getPermanentOrLKIBattlefield(this.getTargetPointer().getFirst(game, source));
Permanent targetPermanent = this.getTargetPointer().getFirstTargetPermanentOrLKI(game, source);
if (targetPermanent != null) {
player = game.getPlayer(targetPermanent.getControllerId());
}

View file

@ -30,7 +30,7 @@ public class ExileAndGainLifeEqualPowerTargetEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanentOrLKIBattlefield(getTargetPointer().getFirst(game, source));
Permanent permanent = getTargetPointer().getFirstTargetPermanentOrLKI(game, source);
if (permanent == null) {
return false;
}