Jump to content
  • Target Buff Casted by Me Doesn't work in TBC


    Ordush
    • Version: All Product: Fight Classes Type: Bug Status: Not a Bug

    If you use "Target Buff Casted by Me" in the fight class editor, it doesn' have any effect.
    Example: I use serpent sting on target, and tell it to only use serpent sting if target doesn't have the buff made by me called serpent sting.
    It will keep spamming serpent sting. If you use the "Target Buff" and set it to Serpent Sting and false, it will not spam Serpent Sting.
    Reason why this is: In TBC the UnitBuff filter " PLAYER " is not a thing in the UnitBuff Table.



    User Feedback

    Recommended Comments

    1 hour ago, Matenia said:

    If it has a timer known to you, then it is your own.

    So buffs in tbc cast by someone else than me does not have a timer?
    Because if that is the case then you could easily make a function for it either by adding it to the UnitBuff table allready made by blizzard, or by making your own function.

    -- Unit Buff by me
        function UnitBuffMe(unit, spellid)
        	for i=1,40 do 
                local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i);
                if buffDuration ~= nil and buffName == GetSpellInfo(spellid) then
                  return true
                end
            end
        	return false
        end

    then you could use UnitBuffMe("target", spellid) then replace spellid by either spell name or spell id.  (i'd suggest spell id for multiple client languages.)

    Example:
     

    -- Unit Buff by me
        function UnitBuffMe(unit, spellid)
        	for i=1,40 do 
                local buffName,buffRank,buffTexture,buffCount,buffDuration,buffExpiration=UnitBuff(unit,i);
                if buffDuration ~= nil and buffName == GetSpellInfo(spellid) then
                  return true
                end
            end
        	return false
        end
    
    if UnitBuffMe("target", 26981) == false then
      CastSpellByName(GetSpellInfo(26981), tar)
    end

    This would check if the target has the buff Rejuvenation cast by you, if not then it will apply it. :)

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...