You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let attack = findAttack(actor, attackname, true, false)
if you only want to check ranged:
let attack = findAttack(actor, attackname, false, true)
And YES, I know the parameter works differently than findSkillSpell... sorry, that's what happens when a system evolves over time. (edited)
And
let ad = GURPS.findAdDisad(actor, traitname)
So if you have a token selected you can just do canvas.tokens.controlled[0].actor to get the actor, then you can set flags for the actor instead of just the token. Then, when you drag the token back on, you can query the actor flags instead of the token flags.