PvPDuration fix #13


  • New
  • Defect
Open
Assigned to ckknight
  • TAP3AH created this issue Mar 25, 2009

    I use [PvP:Append(PvPDuration:FormatDuration:Paren)] in CowTip. The problem is it shows MY duration on EVERYONE'S tooltip. I guess this will solve the problem:

    Categories\Status.lua lines 284-292
    *********************
        code = function(unit)
            if (UnitIsUnit(unit,"player") or UnitIsUnit(unit,"pet")) and IsPVPTimerRunning() then
                return GetPVPTimer() / 1000
            else
                return nil
            end
        end,
        arg = {
            'unit', 'string;undef', 'player'
        },
        ret = 'number;nil',
        events = 'PLAYER_FLAGS_CHANGED#$unit;Update',
    *********************

  • TAP3AH added the tags New Defect Mar 25, 2009
  • TAP3AH edited description Mar 25, 2009
  • TAP3AH edited description Mar 25, 2009

To post a comment, please login or register a new account.