starting of new power manager

This commit is contained in:
2024-09-08 16:39:29 -05:00
parent aece43a3bc
commit 3c1280e546
3 changed files with 14 additions and 13 deletions
+3 -3
View File
@@ -262,7 +262,7 @@ public class WpakPowerManager {
copyMsg.setNumTrains(tr);
// make person casting stand up if spell (unless they're casting a chant which does not make them stand up)
if (pb.isSpell() && !pb.isChant() && playerCharacter.isSit()) {
if (powerCast.isSpell() && !powerCast.isChant() && playerCharacter.isSit()) {
playerCharacter.update();
playerCharacter.setSit(false);
UpdateStateMsg updateStateMsg = new UpdateStateMsg(playerCharacter);
@@ -274,11 +274,11 @@ public class WpakPowerManager {
playerCharacter.cancelOnCast();
// update castSpell (use spell) fail condition if spell
if (pb.isSpell())
if (powerCast.isSpell())
playerCharacter.cancelOnSpell();
// get cast time in ms.
time = pb.getCastTime(trains);
time = powerCast.getCastTime(trains);
// set player is casting for regens