Skip to content

Commit

Permalink
v2.6 Fix 5E spell action deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
ZarestiaDev committed Nov 25, 2022
1 parent bca59b9 commit 33823b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 64 deletions.
64 changes: 2 additions & 62 deletions campaign/scripts/power_action.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function onInit()
registerMenuItem(Interface.getString("power_menu_actiondelete"), "deletepointer", 4);
registerMenuItem(Interface.getString("list_menu_deleteconfirm"), "delete", 4, 3);

updateDisplay();
self.updateDisplay();

local node = getDatabaseNode();

Expand All @@ -19,65 +19,5 @@ function onInit()

local sNode = getDatabaseNode().getPath();
DB.addHandler(sNode, "onChildUpdate", onDataChanged);
onDataChanged();
self.onDataChanged();
end

function onClose()
if super and super.onClose then
super.onClose();
end
end

function onMenuSelection(selection, subselection)
if super and super.onMenuSelection then
super.onMenuSelection();
end
end

function highlight(bState)
if super and super.highlight then
super.highlight();
end
end

function updateDisplay()
if super and super.updateDisplay then
super.updateDisplay();
end
end

function updateViews()
if super and super.updateViews then
super.updateViews();
end
end

function onDataChanged()
if super and super.onDataChanged then
super.onDataChanged();
end
end

function onCastChanged()
if super and super.onCastChanged then
super.onCastChanged();
end
end

function onDamageChanged()
if super and super.onDamageChanged then
super.onDamageChanged();
end
end

function onHealChanged()
if super and super.onHealChanged then
super.onHealChanged();
end
end

function onEffectChanged()
if super and super.onEffectChanged then
super.onEffectChanged();
end
end
4 changes: 2 additions & 2 deletions extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<root version="3.3" >
<properties>
<name>Feature: Spell Record Actions</name>
<version>2.5</version>
<version>2.6</version>
<loadorder>34</loadorder>
<description>
<text>Spell Record Actions</text>
Expand All @@ -23,7 +23,7 @@

<!-- Kelrugem Extended Automation: 35 -->

<announcement text="https://forge.fantasygrounds.com/shop/items/373/view \n3.5E/PFRPG/5E Spell Record Actions - version 2.5 by Zarestia" font="emotefont" icon="sra_icon" />
<announcement text="https://forge.fantasygrounds.com/shop/items/373/view \n3.5E/PFRPG/5E Spell Record Actions - version 2.6 by Zarestia" font="emotefont" icon="sra_icon" />

<base>
<!-- Campaign -->
Expand Down

0 comments on commit 33823b2

Please sign in to comment.