Quantcast

Change: 5.2 compatibility

Taracque [03-06-13 - 10:53]
Change: 5.2 compatibility
Filename
Change_log.txt
Elementarist.lua
Elementarist.toc
diff --git a/Change_log.txt b/Change_log.txt
index 6862e4e..22d87a2 100755
--- a/Change_log.txt
+++ b/Change_log.txt
@@ -1,5 +1,6 @@
 **v3.1.3**
 * Added: Stormlash totem now automaticaly announced to the raid/party chat.
+* Change: 5.2 Compatibiliy

 **v3.1.2**
 * Fixed: Modules now can be disabled
diff --git a/Elementarist.lua b/Elementarist.lua
index efbf0b1..df053ab 100755
--- a/Elementarist.lua
+++ b/Elementarist.lua
@@ -389,9 +389,9 @@ end

 function Elementarist:CountPerson(time, event, sguid, sname, sflags, dguid, dname, dflags)
 	local suffix = event:match(".+(_.-)$")
-	local stype = (tonumber(sguid:sub(5,5), 16)) % 8
-	local dtype = (tonumber(dguid:sub(5,5), 16)) % 8
 	if Elementarist.HostileFilter[suffix] then
+		local stype = (tonumber(sguid:sub(5,5), 16)) % 8
+		local dtype = (tonumber(dguid:sub(5,5), 16)) % 8
 		if (bit.band(dflags, COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE) and (bit.band(dflags, COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) == COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) and ((dtype==0) or (dtype==3)) then
 			if ((not Elementarist.person["foe"][dguid]) or (Elementarist.person["foe"][dguid]==0)) then
 				Elementarist.person["foeCount"] = Elementarist.person["foeCount"] + 1
diff --git a/Elementarist.toc b/Elementarist.toc
index 105feb1..f79b13d 100755
--- a/Elementarist.toc
+++ b/Elementarist.toc
@@ -1,4 +1,4 @@
-## Interface: 50100
+## Interface: 50200
 ## Title: Elementarist
 ## Notes: Elemental shaman spell rotation helper
 ## Author: Taracque, Felmosórongy of Arathor