View Single Post
05-13-17, 03:49 AM   #28
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Originally Posted by lightspark View Post
Eh? You don't understand how UnitAura's (that includes UnitBuff/UnitDebuff) filter works...

Lua Code:
  1. UnitDebuff("target", i, "PLAYER")

W/ "PLAYER" as a filter you'll be getting ONLY debuffs that were applied by the player. It's a separate pre-filtered list of auras, there's no gaps, its indices aren't related to anything.
Holy.......................................

I thought giving a filter "PLAYER" lets the UnitAura to internally check if the caster was "player" or not.

Didn't realize that it would ignore all others from the scratch.

This makes more sense now +_+!!

It also cleared up the first point, so please ignore that

Last edited by Layback_ : 05-13-17 at 03:55 AM.
  Reply With Quote