Skip to content

Commit

Permalink
fix end turn.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drental committed Jan 29, 2023
1 parent a5c9bf7 commit cb9227f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ Hooks.on("init", () => {
name: "End Turn",
hint: "End your turn in combat. As GM, this will end anyone's turn.",
editable: [],
onDown: () => { game.combat.nextTurn(); return true;},
onDown: () => {
if (game.combat.combatants.get(game.combat.current.combatantId).isOwner) {
game.combat.nextTurn();
return true;
}
return false;
},
});

game.keybindings.register("pf2e-f-is-for-flatfooted", "raiseAShield", {
Expand Down

0 comments on commit cb9227f

Please sign in to comment.