Jump to content
  • UnitBuff Problem


    Bugreporter
    • Product: WRobot General Type: Bug Status: Not a Bug

    Fight Class: [Ohren]Beast Mastery Hunter (unmodified)

    Grinder Profile: Timeless Farm (downloaded here)

    Error occured in: Global

    Count: 206

    Message: [string "retV = ""; name, rank, icon, count, debuff..."] line 1:

    Usage: UnitBuff("unit", [index] or ["name", "rank"][, "filter"])

    Debug:

    [C]: UnitBuff()

    [string "retV = ""; name, rank, icon, count, debuff..."]:1: in main chunk

    Locals:

    (*temporary) = "target"



    User Feedback

    Recommended Comments

    Function UnitBuff has two param (no one) and I have fixed small others bug in lua code.

     

    In FightClass [Ohren]Beast Mastery Hunter replace

    name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("target");if (duration <= 3000) then retV = "1";else retV = "0";end 

    by

    retV = "0";  local name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange = GetSpellInfo(1978) ; if (name) then local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("target", "Serpent Sting"); if (name and duration <= 3000)  then retV = "1"; end end
    
    

    (the best way is to contact the creator of the fightclass.)

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