From 04faf5af43adbc7ce191fb69be9c43f9b29ccc23 Mon Sep 17 00:00:00 2001 From: Aviana Date: Tue, 10 Oct 2017 20:05:07 +0200 Subject: [PATCH] Update HealCommLib - Fix the rest of the player appearing as the target when he isn't --- libs/HealComm-1.0/HealComm-1.0.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/HealComm-1.0/HealComm-1.0.lua b/libs/HealComm-1.0/HealComm-1.0.lua index ba9abfa0..52d1f447 100644 --- a/libs/HealComm-1.0/HealComm-1.0.lua +++ b/libs/HealComm-1.0/HealComm-1.0.lua @@ -1,6 +1,6 @@ --[[ Name: HealComm-1.0 -Revision: $Rev: 11660 $ +Revision: $Rev: 11670 $ Author(s): aviana Website: https://github.com/Aviana Description: A library to provide communication of heals and resurrections. @@ -8,7 +8,7 @@ Dependencies: AceLibrary, AceEvent-2.0, RosterLib-2.0 ]] local MAJOR_VERSION = "HealComm-1.0" -local MINOR_VERSION = "$Revision: 11660 $" +local MINOR_VERSION = "$Revision: 11670 $" if not AceLibrary then error(MAJOR_VERSION .. " requires AceLibrary") end if not AceLibrary:IsNewVersion(MAJOR_VERSION, MINOR_VERSION) then return end @@ -1519,7 +1519,7 @@ end function HealComm:CastSpellByName(spellName, onSelf) self.hooks.CastSpellByName(spellName, onSelf) - if self.CurrentSpellName and not SpellIsTargeting() then return end + if self.CurrentSpellName and not SpellIsTargeting() or GetCVar("AutoSelfCast") == "0" and not SpellIsTargeting() then return end local _,_,rank = string.find(spellName,"(%d+)") local _, _, spellName = string.find(spellName, "^([^%(]+)")