Skip to content

Commit

Permalink
V 0.5.1 Small fixes to items (Vertical slice fully functional now)
Browse files Browse the repository at this point in the history
-Fixed Item:createInitialEffectTable's .effect function not having room for self
-Fixed DecayingPower's 'table' issue.
  • Loading branch information
AmethystEspeon committed Jan 19, 2023
1 parent 357ef12 commit 75f073a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Items/DecayingPower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ function DecayingPower:resetEffect(unit, table)
end
end

function DecayingPower:applyEffect(unit, table)
function DecayingPower:applyEffect(unit, effectTable)
local debuff = CreateDecayDebuff(unit);
table.insert(debuff, unit);
table.insert(unit.debuffs, debuff);
end

function DecayingPower:preEffect(unit, table)
Expand Down
2 changes: 1 addition & 1 deletion Items/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Item:createInitialEffectTable()
stacks = 0;
active = false;
}
effectTable.effect = function(unit)
effectTable.effect = function(_,unit)
if self.preEffect then
self:preEffect(unit, effectTable);
end
Expand Down

0 comments on commit 75f073a

Please sign in to comment.