Browse Source

spells that target self now default to self target

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
49e5be959f
  1. 3
      src/engine/gameManager/PowersManager.java

3
src/engine/gameManager/PowersManager.java

@ -1787,7 +1787,8 @@ public enum PowersManager {
ac.setItemCasting(false); ac.setItemCasting(false);
if (ac == null || target == null || pb == null) if (ac == null || target == null || pb == null)
return; return;
if(pb.targetSelf)
target = ac;
ac.clearTimer(Integer.toString(pb.getToken())); ac.clearTimer(Integer.toString(pb.getToken()));
if (liveCounter == ac.getLiveCounter()) if (liveCounter == ac.getLiveCounter())
finishApplyPowerA(ac, target, targetLoc, pb, trains, false); finishApplyPowerA(ac, target, targetLoc, pb, trains, false);

Loading…
Cancel
Save