From a3570e5c3271961292fecd8e3bf6bff7ae22a8b7 Mon Sep 17 00:00:00 2001 From: Peter Hunnisett <29824554+phBalance@users.noreply.github.com> Date: Sat, 14 Dec 2024 11:00:57 -0700 Subject: [PATCH] fix(power): several powers should be effect only --- module/item/item.mjs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/module/item/item.mjs b/module/item/item.mjs index 048c54c7..2b3087d6 100644 --- a/module/item/item.mjs +++ b/module/item/item.mjs @@ -4367,17 +4367,22 @@ export class HeroSystem6eItem extends Item { // Specific power overrides if (xmlid === "ENTANGLE") { this.system.class = "entangle"; + this.system.knockbackMultiplier = 0; this.system.usesStrength = false; this.system.noHitLocations = true; - this.system.knockbackMultiplier = 0; + this.system.stunBodyDamage = CONFIG.HERO.stunBodyDamages.effectonly; } else if (xmlid === "DARKNESS") { this.system.class = "darkness"; + this.system.knockbackMultiplier = 0; this.system.usesStrength = false; this.system.noHitLocations = true; + this.system.stunBodyDamage = CONFIG.HERO.stunBodyDamages.effectonly; } else if (xmlid === "IMAGES") { this.system.class = "images"; + this.system.knockbackMultiplier = 0; this.system.usesStrength = false; this.system.noHitLocations = true; + this.system.stunBodyDamage = CONFIG.HERO.stunBodyDamages.effectonly; } else if (xmlid === "ABSORPTION") { this.system.class = "adjustment"; this.system.usesStrength = false; @@ -4426,21 +4431,29 @@ export class HeroSystem6eItem extends Item { this.system.knockbackMultiplier = 0; this.system.usesStrength = false; this.system.noHitLocations = true; + this.system.stunBodyDamage = CONFIG.HERO.stunBodyDamages.effectonly; } else if (xmlid === "CHANGEENVIRONMENT") { this.system.class = "change enviro"; + this.system.knockbackMultiplier = 0; this.system.usesStrength = false; this.system.noHitLocations = true; + this.system.stunBodyDamage = CONFIG.HERO.stunBodyDamages.effectonly; } else if (xmlid === "FLASH") { this.system.class = "flash"; + this.system.knockbackMultiplier = 0; this.system.usesStrength = false; this.system.noHitLocations = true; + this.system.stunBodyDamage = CONFIG.HERO.stunBodyDamages.effectonly; } else if (xmlid === "ENERGYBLAST") { this.system.usesStrength = false; } else if (xmlid === "RKA") { this.system.usesStrength = false; } else if (xmlid === "TRANSFORM") { this.system.class = "transform"; + this.system.knockbackMultiplier = 0; this.system.usesStrength = false; + this.system.noHitLocations = true; + this.system.stunBodyDamage = CONFIG.HERO.stunBodyDamages.effectonly; } // AVAD