Skip to content

Commit

Permalink
Flame Blade
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Jan 7, 2025
1 parent b122bcb commit 75ed02a
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 98 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Next Up

- Hex, Ice Knife, Fire Shield, Flesh to Stone and Heroism Midi automations for v4.
- Various spell fixes.

# 6.0.62

Expand Down
61 changes: 0 additions & 61 deletions macros/spells/flameBlade.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/effects/specialSpells.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { divineWordEffect } from "./spells/divineWord.js";
import { enhanceAbilityEffect } from "./spells/enhanceAbility.js";
import { ensnaringStrikeEffect } from "./spells/ensnaringStrike.js";
import { eyebiteEffect } from "./spells/eyebite.js";
import { flameBladeEffect } from "./spells/flameBlade.js";
import { greaseEffect } from "./spells/grease.js";
import { hailOfThornsEffect } from "./spells/hailOfThorns.js";
import { heroesFeastEffect } from "./spells/heroesFeast.js";
Expand Down Expand Up @@ -136,10 +135,6 @@ async function midiEffectAdjustment(document) {
document = await eyebiteEffect(document);
break;
}
case "Flame Blade": {
document = await flameBladeEffect(document);
break;
}
case "Grease": {
document = await greaseEffect(document);
break;
Expand Down
32 changes: 0 additions & 32 deletions src/effects/spells/flameBlade.js

This file was deleted.

1 change: 1 addition & 0 deletions src/parser/enrichers/DDBSpellEnricher.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export default class DDBSpellEnricher extends DDBEnricherFactoryMixin {
"Banishment": SpellEnrichers.Banishment,
"Ice Knife": SpellEnrichers.IceKnife,
"Flesh to Stone": SpellEnrichers.FleshToStone,
"Flame Blade": SpellEnrichers.FlameBlade,
// Needs work
// "Web": SpellEnrichers.Web,
};
Expand Down
77 changes: 77 additions & 0 deletions src/parser/enrichers/spell/FlameBlade.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* eslint-disable class-methods-use-this */
import DDBEnricherData from "../data/DDBEnricherData.mjs";

export default class FlameBlade extends DDBEnricherData {

get type() {
return "utility";
}

get activity() {
return {
name: "Summon Blade",
};
}

get effects() {
return [
{
name: "Flame Blade",
activityMatch: "Summon Blade",
atlChanges: [
DDBEnricherData.ChangeHelper.upgradeChange("20", 20, "ATL.light.dim"),
DDBEnricherData.ChangeHelper.upgradeChange("10", 20, "ATL.light.bright"),
],
data: {
flags: {
dae: {
selfTarget: true,
selfTargetAlways: true,
},
},
},
},
];
}

get additionalActivities() {
return [
{
constructor: {
name: "Attack",
type: "attack",
},
build: {
generateAttack: true,
generateDamage: true,
geneateActivation: true,
noSpellslot: true,
generateRange: true,
generateTarget: true,
},
overrides: {
activationType: "action",
targetType: "creature",
data: {
range: {
value: 5,
units: "ft",
},
damage: {
parts: [
DDBEnricherData.basicDamagePart({
number: 3,
denomination: 6,
bonus: "@mod",
scalingMode: "whole",
scalingNumber: 1,
}),
],
},
},
},
},
];
}

}
1 change: 1 addition & 0 deletions src/parser/enrichers/spell/_module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export { default as FalseLife } from "./FalseLife.mjs";
export { default as FeatherFall } from "./FeatherFall.mjs";
export { default as Feeblemind } from "./Feeblemind.mjs";
export { default as FireShield } from "./FireShield.mjs";
export { default as FlameBlade } from "./FlameBlade.mjs";
export { default as FlamingSphere } from "./FlamingSphere.mjs";
export { default as FleshToStone } from "./FleshToStone.mjs";
export { default as Fly } from "./Fly.mjs";
Expand Down

0 comments on commit 75ed02a

Please sign in to comment.