fix and test [FIN] Zack Fair

This commit is contained in:
Susucre 2025-06-07 20:09:32 +02:00
parent baa52bc617
commit 8495d6a74e
3 changed files with 151 additions and 1 deletions

View file

@ -27,7 +27,7 @@ public class PutSourceCountersOnTargetEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent sourcePermanent = (Permanent) getValue("permanentLeftBattlefield");
Permanent sourcePermanent = source.getSourcePermanentOrLKI(game);
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
if (sourcePermanent == null || permanent == null) {
return false;