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

    Ordush

    Posted

    This is a problem because if you play with other hunters, you won't be able to use Serpent Sting. Just imagine being a resto druid with another resto druid in party. ;)

    Ordush

    Posted

    I see that it is marked as not a bug. Is this something that will change? Or will this just remain impossible in TBC?

    Droidz

    Posted

    Hello, yes sorry, "Buff Casted by" is not in TBC and Vanilla Wow client

    Matenia

    Posted

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

    Ordush

    Posted

    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. :)

    Ordush

    Posted

    I am sure you could use this to make the function in the fight class editor work with tbc @Droidz



    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...