Jass:UnitCountBuffsExBJ – Mappedia

Jass:UnitCountBuffsExBJ

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: UnitCountBuffsExBJ
Parameter: integer
integer
unit
boolean
boolean
Rückgabewert: integer
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



Code

function UnitCountBuffsExBJ takes integer polarity, integer resist, unit whichUnit, boolean bTLife, boolean bAura returns integer
    local boolean bPos   = (polarity == bj_BUFF_POLARITY_EITHER) or (polarity == bj_BUFF_POLARITY_POSITIVE)
    local boolean bNeg   = (polarity == bj_BUFF_POLARITY_EITHER) or (polarity == bj_BUFF_POLARITY_NEGATIVE)
    local boolean bMagic = (resist == bj_BUFF_RESIST_BOTH) or (resist == bj_BUFF_RESIST_MAGIC)
    local boolean bPhys  = (resist == bj_BUFF_RESIST_BOTH) or (resist == bj_BUFF_RESIST_PHYSICAL)

    return UnitCountBuffsEx(whichUnit, bPos, bNeg, bMagic, bPhys, bTLife, bAura, false)
endfunction

Parameter

Typ Name Beschreibung
integer polarity
integer resist
unit whichUnit
boolean bTLife
boolean bAura
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge