Skip to content

Commit

Permalink
Greater Invisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed May 22, 2023
1 parent 0713b5c commit f8085d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# NEXT UP

- Effect: Greater Invisibility Corrections.

# 3.4.22

- Effect: Psychic Scream Spell (Thanks @Moto Moto#0295)
Expand Down
3 changes: 2 additions & 1 deletion src/effects/specialSpells.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import { flyEffect } from "./spells/fly.js";
import { frostbiteEffect } from "./spells/frostbite.js";
import { geasEffect } from "./spells/geas.js";
import { greaseEffect } from "./spells/grease.js";
import { greaterInvisibilityEffect } from "./spells/greaterInvisibility.js";
import { greenFlameBladeEffect } from "./spells/greenFlameBlade.js";
import { guidanceEffect } from "./spells/guidance.js";
import { guidingBoltEffect } from "./spells/guidingBolt.js";
Expand Down Expand Up @@ -424,7 +425,7 @@ export async function spellEffectAdjustment(document) {
break;
}
case "Greater Invisibility": {
document = await invisibilityEffect(document);
document = await greaterInvisibilityEffect(document);
break;
}
case "Green-Flame Blade": {
Expand Down
9 changes: 9 additions & 0 deletions src/effects/spells/greaterInvisibility.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { baseSpellEffect, generateStatusEffectChange } from "../specialSpells.js";

export async function greaterInvisibilityEffect(document) {
let effect = baseSpellEffect(document, document.name);
effect.changes.push(generateStatusEffectChange("Convenient Effect: Invisible"));
document.effects.push(effect);

return document;
}

0 comments on commit f8085d3

Please sign in to comment.