Skip to content

Commit

Permalink
Merge pull request #19 from CydGoblin/master
Browse files Browse the repository at this point in the history
fix off-guard id and label
  • Loading branch information
Drental authored Aug 5, 2023
2 parents 9cb24ef + bb7aaaf commit b772955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ Hooks.on("init", () => {
});

game.keybindings.register("pf2e-f-is-for-flatfooted", "flatfooted", {
name: "F is for Flatfooted",
name: "F is for Off-Guard",
hint: "Toggle the Flatfooted condition on the token currently hovered over (if you can control it).",
editable: [
{
key: "KeyF"
}
],
onDown: () => { canvas.tokens.hover?.actor?.toggleCondition('offguard'); return true; },
onDown: () => { canvas.tokens.hover?.actor?.toggleCondition('off-guard'); return true; },
});

game.keybindings.register("pf2e-f-is-for-flatfooted", "compendiumBrowser", {
Expand Down Expand Up @@ -209,7 +209,7 @@ Hooks.on("init", () => {
});

//Expand these as needed - the first could probably be detected automatically, but, I'm feeling lazy tonight. :)
let alreadyKeyboundConditions = ['offguard'];
let alreadyKeyboundConditions = ['off-guard'];
let ignorableConditions = ['helpful', 'friendly', 'unfriendly'];
let numericConditions = ['clumsy', 'doomed', 'drained', 'dying', 'enfeebled', 'frightened', 'sickened', 'slowed', 'stunned', 'stupefied', 'wounded'];

Expand Down

0 comments on commit b772955

Please sign in to comment.