1 - Error when in Party
I don't know LUA at all but i do know other languages so i had a crack at it.
Throws an error in Old_Scripts.lua when in a party.
BEFORE
if instanceType == "party" or instanceType == "raid" then if Flashable(SpellName(21562--[[Prayer of Fortitude]])) and not Table.IsFortActive() and Castable("Prayer of Fortitude") then Flash(SpellName(21562--[[Prayer of Fortitude]]), "Green") end if Flashable(SpellName(27681--[[Prayer of Spirit]])) and not Table.IsSpiritActive() and Castable("Prayer of Spirit") then Flash(SpellName(27681--[[Prayer of Spirit]]), "Green") end if Flashable(SpellName(27683--[[Prayer of Shadow Protection]])) and not Table.IsShadowActive() and Castable("Prayer of Shadow Protection") then Flash(SpellName(27683--[[Prayer of Shadow Protection]]), "Green") end
AFTER
if instanceType == "party" or instanceType == "raid" then if Flashable(SpellName(21562--[[Prayer of Fortitude]])) and not AddonTable.IsFortActive() and Castable("Prayer of Fortitude") then Flash(SpellName(21562--[[Prayer of Fortitude]]), "Green") end if Flashable(SpellName(27681--[[Prayer of Spirit]])) and not AddonTable.IsSpiritActive() and Castable("Prayer of Spirit") then Flash(SpellName(27681--[[Prayer of Spirit]]), "Green") end if Flashable(SpellName(27683--[[Prayer of Shadow Protection]])) and not AddonTable.IsShadowActive() and Castable("Prayer of Shadow Protection") then Flash(SpellName(27683--[[Prayer of Shadow Protection]]), "Green") end
Table. should be AddonTable. correct? Works for me :)
| User | When | Change |
|---|---|---|
| BigRedBrent | Sep 19, 2010 at 02:13 UTC | Changed status from New to Fixed |
| Torchler | Sep 19, 2010 at 01:12 UTC | Create |
- 1 comment
- 1 comment
Facts
- Last updated
- Sep 19, 2010
- Reported
- Sep 19, 2010
- Status
- Fixed - Developer made requested changes. QA should verify.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.
- Votes
- 0
- Reply
- #1
BigRedBrent Sep 19, 2010 at 02:12 UTC - 0 likesIt looks like this is repaired in the latest revision. Also the value for instanceType was not being passed to the function it is being used from, this has also been fixed in the repository.
Check out the addon SpellFlash to help improve your gameplay in World of Warcraft!