From 49e5be959fbccff59e8836826426f038bf0491e7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 15 May 2024 20:55:58 -0500 Subject: [PATCH] spells that target self now default to self target --- src/engine/gameManager/PowersManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 38afeb55..900f2b27 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -1787,7 +1787,8 @@ public enum PowersManager { ac.setItemCasting(false); if (ac == null || target == null || pb == null) return; - + if(pb.targetSelf) + target = ac; ac.clearTimer(Integer.toString(pb.getToken())); if (liveCounter == ac.getLiveCounter()) finishApplyPowerA(ac, target, targetLoc, pb, trains, false);