Browse Source

use new power manager

feature-config-usage
FatBoy-DOTC 2 weeks ago
parent
commit
b9b6b37505
  1. 4
      src/engine/net/client/handlers/PerformActionMsgHandler.java
  2. 4
      src/engine/net/client/handlers/SendSummonsMsgHandler.java

4
src/engine/net/client/handlers/PerformActionMsgHandler.java

@ -12,6 +12,7 @@ import engine.gameManager.PowersManager; @@ -12,6 +12,7 @@ import engine.gameManager.PowersManager;
import engine.net.client.ClientConnection;
import engine.net.client.msg.ClientNetMsg;
import engine.net.client.msg.PerformActionMsg;
import engine.wpak.WpakPowerManager;
public class PerformActionMsgHandler extends AbstractClientMsgHandler {
@ -23,7 +24,8 @@ public class PerformActionMsgHandler extends AbstractClientMsgHandler { @@ -23,7 +24,8 @@ public class PerformActionMsgHandler extends AbstractClientMsgHandler {
protected boolean _handleNetMsg(ClientNetMsg baseMsg, ClientConnection origin) {
PerformActionMsg msg = (PerformActionMsg) baseMsg;
PowersManager.usePower(msg, origin, false); // Wtf ?
//PowersManager.usePower(msg, origin, false); // Wtf ?
WpakPowerManager.usePower(msg, origin, false);
return true;
}

4
src/engine/net/client/handlers/SendSummonsMsgHandler.java

@ -17,6 +17,7 @@ import engine.net.client.msg.PerformActionMsg; @@ -17,6 +17,7 @@ import engine.net.client.msg.PerformActionMsg;
import engine.net.client.msg.SendSummonsMsg;
import engine.objects.PlayerCharacter;
import engine.server.MBServerStatics;
import engine.wpak.WpakPowerManager;
import static engine.gameManager.PowersManager.*;
@ -81,7 +82,8 @@ public class SendSummonsMsgHandler extends AbstractClientMsgHandler { @@ -81,7 +82,8 @@ public class SendSummonsMsgHandler extends AbstractClientMsgHandler {
// Client removes 200 mana on summon use.. so don't send message to self
target.addSummoner(playerCharacter.getObjectUUID(), System.currentTimeMillis() + MBServerStatics.FOURTYFIVE_SECONDS);
usePower(pam, origin, false);
//usePower(pam, origin, false);
WpakPowerManager.usePower(pam, origin, false);
return true;
}

Loading…
Cancel
Save