Skip to content

Commit

Permalink
Merge pull request dmdorman#1583 from aeauseth/main
Browse files Browse the repository at this point in the history
Publish 4.0.12
  • Loading branch information
aeauseth authored Dec 7, 2024
2 parents 879046a + 3dcc602 commit 6560277
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Releases

## Version 4.0.11 (So Far...) [Hero System 6e (Unofficial) v2](https://github.com/dmdorman/hero6e-foundryvtt)
## Version 4.0.12 [Hero System 6e (Unofficial) v2](https://github.com/dmdorman/hero6e-foundryvtt)

- Fix for SPD purchased as a power not contributing to final values during upload. [#1439](https://github.com/dmdorman/hero6e-foundryvtt/issues/1439)
- Fix for combat tracker where sometimes it would skip combatants when new combatants were added/removed. [#1447](https://github.com/dmdorman/hero6e-foundryvtt/issues/1447)
Expand Down
6 changes: 4 additions & 2 deletions module/actor/actor-token.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export class HeroSystem6eTokenDocument extends TokenDocument {
_prepareDetectionModes() {
if (!this.sight.enabled) return;

if (!this.isOwner) return;

if (this.sight.visionMode != "basic") {
super._prepareDetectionModes();
return;
Expand Down Expand Up @@ -102,7 +104,7 @@ export class HeroSystem6eTokenDocument extends TokenDocument {
let maxRange = 8;
// TODO: Fix PERCEPTION.system.roll so we don't have to poke into INT
//const PERCEPTION = this.actor?.items.find((i) => i.system.XMLID === "PERCEPTION");
if (this.actor) {
if (this.actor && this.actor.system.characteristics.int) {
//9 + (INT/5)
const perRoll = 9 + RoundFavorPlayerUp(parseInt(this.actor.system.characteristics.int.value) / 5);
const pwr = perRoll / 2 + 2;
Expand Down Expand Up @@ -133,7 +135,7 @@ export class HeroSystem6eTokenDocument extends TokenDocument {
//item.system.OPTIONID === undefined && // DETECT
item.isActive,
);
if (SIGHTGROUP) {
if (SIGHTGROUP && !this.actor?.statuses.has("blind")) {
const basicMode = this.detectionModes.find((m) => m.id === "basicSight");
basicMode.range = maxRange;
this.sight.range = maxRange; // You can see without a light source
Expand Down
2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "hero6e-foundryvtt-v2",
"title": "Hero System 6e (Unofficial) v2",
"description": "The Hero System 6e for FoundryVTT!",
"version": "4.0.11",
"version": "4.0.12",
"compatibility": {
"minimum": "12",
"verified": "12.331",
Expand Down

0 comments on commit 6560277

Please sign in to comment.