• 0

    posted a message on GridStatusHots -> Shows your HoT(s) remaing time and total HoTs
    Quote from gia »

    GridStatusHots is not showing any indicator for players of a different server (battlegrounds).


    Here's a quick fix. Add these 4 lines to the top of the UNIT_SPELLCAST_SENT function.
    	if string.find(target,"-") then
    		local intEnd = string.find(target, "-");
    		target = string.sub(target,1,intEnd - 1);
    	end

    It should look like
    function GridStatusHots:UNIT_SPELLCAST_SENT(unit, spell, rank, target)
    	-- Did you cast a HoT ?
    	if string.find(target,"-") then
    		local intEnd = string.find(target, "-");
    		target = string.sub(target,1,intEnd - 1);
    	end
    	if spell == L["Renew"] then
    		gsh_target = target
    		hotspell = L["Renew"]
    		hotspellduration = 15
    		cstatus = "alert_renew"
    		dbsettings=self.db.profile.alert_renew
    	elseif spell == L["Rejuvenation"] then
    		gsh_target = target
    		hotspell = L["Rejuvenation"]
    		hotspellduration = 12
    		cstatus = "alert_rejuv"
    		dbsettings=self.db.profile.alert_rejuv
    	elseif spell == L["Regrowth"] then
    		gsh_target = target
    		hotspell = L["Regrowth"]
    		hotspellduration = 21
    		cstatus = "alert_regrow"
    		dbsettings=self.db.profile.alert_regrow
    	elseif spell == L["Lifebloom"] then
    		gsh_target = target
    		hotspell = L["Lifebloom"]
    		hotspellduration = 7
    		cstatus = "alert_lifebl"
    		dbsettings=self.db.profile.alert_lifebl
    	else
    		gsh_target = nil
    	end
    end
    Posted in: Grid & Grid2
  • To post a comment, please or register a new account.