Browse Source

powers manager fixes

lakebane2
FatBoy-DOTC 2 weeks ago
parent
commit
3539372437
  1. 3
      src/engine/gameManager/CombatManager.java
  2. 5
      src/engine/gameManager/PowersManager.java

3
src/engine/gameManager/CombatManager.java

@ -1249,6 +1249,9 @@ public enum CombatManager { @@ -1249,6 +1249,9 @@ public enum CombatManager {
if (pc == null)
return;
if(pc.isFlying())
pc.setSit(false);
else
pc.setSit(toggle);
UpdateStateMsg rwss = new UpdateStateMsg();

5
src/engine/gameManager/PowersManager.java

@ -164,7 +164,10 @@ public enum PowersManager { @@ -164,7 +164,10 @@ public enum PowersManager {
boolean sendCastToSelf) {
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
if(!pc.isFlying()) //cant be sitting if flying
CombatManager.toggleSit(false,origin);
if(pc.isMoving())
pc.stopMovement(pc.getMovementLoc());
@ -2691,7 +2694,7 @@ public enum PowersManager { @@ -2691,7 +2694,7 @@ public enum PowersManager {
public static void cancelOnStun(AbstractCharacter ac) {
if(ac.getObjectType().equals(GameObjectType.PlayerCharacter)){
PlayerCharacter.GroundPlayer((PlayerCharacter)ac);
//PlayerCharacter.GroundPlayer((PlayerCharacter)ac);
}
}

Loading…
Cancel
Save