Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

  • 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

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

    Share this comment


    Link to comment
    Share on other sites
    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. :)

    Share this comment


    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...