forked from MagicBane/Server
starting of new power manager
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user