Skip to content

Commit

Permalink
Update HealCommLib
Browse files Browse the repository at this point in the history
- Fix the rest of the player appearing as the target when he isn't
  • Loading branch information
Aviana committed Oct 10, 2017
1 parent 43a71bc commit 04faf5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/HealComm-1.0/HealComm-1.0.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
--[[
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.
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
Expand Down Expand Up @@ -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, "^([^%(]+)")
Expand Down

0 comments on commit 04faf5a

Please sign in to comment.