refactor: improved usage of target pointers

This commit is contained in:
Oleg Agafonov 2024-02-18 15:38:53 +04:00
parent 78612ddc91
commit 46d751f996
476 changed files with 548 additions and 563 deletions

View file

@ -41,7 +41,7 @@ public class DamageWithExcessEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
MageObject sourceObject = source.getSourceObject(game);
if (permanent == null || sourceObject == null) {
return false;