diff --git a/CHANGELOG.md b/CHANGELOG.md index 75490c72..e03e1692 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/module/actor/actor-token.mjs b/module/actor/actor-token.mjs index a645947e..b8b70dd9 100644 --- a/module/actor/actor-token.mjs +++ b/module/actor/actor-token.mjs @@ -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; @@ -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; @@ -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 diff --git a/system.json b/system.json index 1a555af4..20d72333 100644 --- a/system.json +++ b/system.json @@ -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",