powers manager fixes

This commit is contained in:
2025-01-04 12:30:17 -06:00
parent 7c498625bd
commit 3539372437
2 changed files with 9 additions and 3 deletions
+4 -1
View File
@@ -1249,7 +1249,10 @@ public enum CombatManager {
if (pc == null)
return;
pc.setSit(toggle);
if(pc.isFlying())
pc.setSit(false);
else
pc.setSit(toggle);
UpdateStateMsg rwss = new UpdateStateMsg();
rwss.setPlayer(pc);
+5 -2
View File
@@ -164,7 +164,10 @@ public enum PowersManager {
boolean sendCastToSelf) {
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
CombatManager.toggleSit(false,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 {
public static void cancelOnStun(AbstractCharacter ac) {
if(ac.getObjectType().equals(GameObjectType.PlayerCharacter)){
PlayerCharacter.GroundPlayer((PlayerCharacter)ac);
//PlayerCharacter.GroundPlayer((PlayerCharacter)ac);
}
}