Skip to content

Commit

Permalink
Add the missing 'token.' on use of actor in bank value functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Eligarf committed Aug 15, 2024
1 parent a280bf9 commit fb67689
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v4.6.2
* Fix the fix in 4.6.1

# v4.6.1
* Update pt-BR.json (thanks Kharmans)
* Handle the case where banking is changed from actor to token while a stealth effect is still active on tokens. In this case, the effect will continue to hold the banked values until it is removed.
Expand Down
4 changes: 2 additions & 2 deletions scripts/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export default class Engine {

async bankStealth(token, value) {
while (!stealthy.stealthToActor) {
if (this.findStealthEffect(actor)) break;
if (this.findStealthEffect(token.actor)) break;
await this.bankRollOnToken(token, 'stealth', value);
return;
}
Expand All @@ -532,7 +532,7 @@ export default class Engine {

async bankPerception(token, value) {
while (!stealthy.perceptionToActor) {
if (this.findPerceptionEffect(actor)) break;
if (this.findPerceptionEffect(token.actor)) break;
await this.bankRollOnToken(token, 'perception', value);
return;
}
Expand Down

0 comments on commit fb67689

Please sign in to comment.