Skip to content

Commit 7d412ba

Browse files
committed
Fix for Magic Burster assist mode
For Magic Burster, we assign `spell` on L76 as the res.spell, we then attempt to reference it on L79 as the spell class to get .name rather than .en. This results in a nil spell.
1 parent 6071f4f commit 7d412ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cylibs/trust/roles/magic_burster.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function MagicBurster:on_add()
7676
local spell = res.spells[spell_id]
7777
if spell and S{'Enemy'}:intersection(S(spell.targets)):length() > 0 and S{'BlackMagic', 'BlueMagic'}:contains(spell.type) then
7878
if self.job:knows_spell(spell.id) then
79-
self:cast_spell(Spell.new(spell.name))
79+
self:cast_spell(Spell.new(spell.en))
8080
else
8181
local spell = self:get_spell(Element.new(res.elements[spell.element].en))
8282
if spell then

0 commit comments

Comments
 (0)