Browse Source

recall scrolls take double the time to execute

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
4707bb11f0
  1. 2
      src/engine/gameManager/PowersManager.java

2
src/engine/gameManager/PowersManager.java

@ -1667,6 +1667,8 @@ public enum PowersManager {
Vector3fImmutable targetLoc, PowersBase pb, int trains, Vector3fImmutable targetLoc, PowersBase pb, int trains,
boolean fromItem) { boolean fromItem) {
int time = pb.getCastTime(trains); int time = pb.getCastTime(trains);
if(fromItem == true && pb.name.equals("Recall"))
time *= 2;
if (!fromItem) if (!fromItem)
finishApplyPowerA(ac, target, targetLoc, pb, trains, false); finishApplyPowerA(ac, target, targetLoc, pb, trains, false);
else if (time == 0) else if (time == 0)

Loading…
Cancel
Save