SpellFlash: Priest

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

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of BigRedBrent BigRedBrent Sep 19, 2010 at 02:12 UTC - 0 likes

    It 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!

  • 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

Reported by

Possible assignees