mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
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:
parent
aa216dc742
commit
f96343eec8
11 changed files with 11 additions and 11 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue