From 29c043c11be4e846b12b3a5f50d8fe300b16379d Mon Sep 17 00:00:00 2001 From: Taracque Date: Wed, 6 Mar 2013 11:53:47 +0100 Subject: [PATCH] Change: 5.2 compatibility --- Change_log.txt | 1 + Elementarist.lua | 4 ++-- Elementarist.toc | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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 -- 1.7.9.5