From f0594fb1b20a546fdf066f5779a28428f230640d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 6 Jan 2025 12:45:20 -0600 Subject: [PATCH] sitting only toggle when casting spells not skills --- src/engine/gameManager/PowersManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 744586d3..6208c387 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -165,7 +165,7 @@ public enum PowersManager { PlayerCharacter pc = SessionManager.getPlayerCharacter(origin); - if(!pc.isFlying()) //cant be sitting if flying + if(!pc.isFlying() && powersBaseByToken.get(msg.getPowerUsedID()) != null && powersBaseByToken.get(msg.getPowerUsedID()).isSpell) //cant be sitting if flying CombatManager.toggleSit(false,origin); if(pc.isMoving())