+ Reply to Thread
Results 1 to 3 of 3

Thread: Event.Buff.Add

  1. #1
    Rift Chaser NerfedWar's Avatar
    Join Date
    Dec 2010
    Posts
    377

    Default Event.Buff.Add

    Been playing around with this unsuccessfully, anyone know if it is possible to determine who is the caster when a Buff is added and the Buff.Add event is thrown?
    Last edited by NerfedWar; 03-18-2012 at 05:22 AM.
    ...the internet treats censorship as damage, and routes around it...
    NerfedWar Addons and Tutorials
    * Note: tutorials are currently being ported to the new site.

  2. #2
    Plane Walker Kreiri's Avatar
    Join Date
    Feb 2011
    Posts
    402

    Default

    Just inspect this buff's detail.

    Code:
    Inspect.Buff.Detail
                    Function documentation:
                            Provides detailed information about the buffs on a unit.
                                    detail = Inspect.Buff.Detail(unit, buff)   -- table <- unit, buff
                                    details = Inspect.Buff.Detail(unit, buffs)   -- table <- unit, table
                    Parameters:
                                    buff:   An identifier for the buff to retrieve detail for.
                                    buffs:  A lookup table containing buff identifiers to retrieve details for.
                                    unit:   The unit to inspect.
                    Return values:
                                    detail: Detail table for a single buff.
                                    details:        Detail tables for all requested buffs. The key is the buff ID, the value is the buff's detail table.
                    Returned members:
                                    -- skip
                                    caster: Unit ID of the buff's caster.
                                    -- skip
    Feminism is the radical notion that women are people.

  3. #3
    Rift Chaser NerfedWar's Avatar
    Join Date
    Dec 2010
    Posts
    377

    Default

    Silly me, many thanks!

    Quote Originally Posted by Kreiri View Post
    Just inspect this buff's detail.

    Code:
    Inspect.Buff.Detail
                    Function documentation:
                            Provides detailed information about the buffs on a unit.
                                    detail = Inspect.Buff.Detail(unit, buff)   -- table <- unit, buff
                                    details = Inspect.Buff.Detail(unit, buffs)   -- table <- unit, table
                    Parameters:
                                    buff:   An identifier for the buff to retrieve detail for.
                                    buffs:  A lookup table containing buff identifiers to retrieve details for.
                                    unit:   The unit to inspect.
                    Return values:
                                    detail: Detail table for a single buff.
                                    details:        Detail tables for all requested buffs. The key is the buff ID, the value is the buff's detail table.
                    Returned members:
                                    -- skip
                                    caster: Unit ID of the buff's caster.
                                    -- skip
    ...the internet treats censorship as damage, and routes around it...
    NerfedWar Addons and Tutorials
    * Note: tutorials are currently being ported to the new site.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts