Skip to content

Commit

Permalink
fix(power): several powers should be effect only
Browse files Browse the repository at this point in the history
  • Loading branch information
phBalance committed Dec 14, 2024
1 parent 1d40939 commit a3570e5
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 a3570e5

Please sign in to comment.