Skip to content

Commit

Permalink
Merge pull request dmdorman#1624 from phBalance/phBalance/effect-only…
Browse files Browse the repository at this point in the history
…-tweaks

fix(power): several powers should be effect only
  • Loading branch information
phBalance authored Dec 14, 2024
2 parents 1d40939 + a3570e5 commit 40e4d43
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion module/item/item.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 40e4d43

Please sign in to comment.