Browse Source

recall scrolls take double the time to execute

lakebane-master
FatBoy-DOTC 8 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 { @@ -1667,6 +1667,8 @@ public enum PowersManager {
Vector3fImmutable targetLoc, PowersBase pb, int trains,
boolean fromItem) {
int time = pb.getCastTime(trains);
if(fromItem == true && pb.name.equals("Recall"))
time *= 2;
if (!fromItem)
finishApplyPowerA(ac, target, targetLoc, pb, trains, false);
else if (time == 0)

Loading…
Cancel
Save