MZ Checking if double debuff is applied?

I know you can check any debuff with

$gameActors.actor(x).isDebuffAffected(y)

But is it possible to distinguished if it's a single or double buff?
Thanks in advance!
I know that there's this:

Code:
$gameActors.actor(x).states().length;

But that counts all their states.

Potentially but I'm not 100%:

Code:
$gameActors.actor(x).isDebuffAffected(y).length;

EDIT: I GOT IT. You actually asked something similar before!

a.paramBuffRate(ID)- Gives you the buff multiplier
a._buffs[ID] - Gives you the flat number of buff stacks

Code:
0 = mhp
1 = mmp
2 = atk
3 = def
4 = mat
5 = mdf
6 = agi
7 = luk


Referenced these 3 links:
A thread you made: https://forums.rpgmakerweb.com/inde...anch-to-test-if-actor-x-has-buff-y-on.122426/
Another similar thread: https://forums.rpgmakerweb.com/index.php?threads/skill-with-damage-based-on-user-buffs.111020/
@Trihan wonderful tutorial: https://rpgmaker.net/articles/2694/
You can get the current "buff level" like this:

$gameActors.actor(actorId).buff(paramId)
This is +1 for single buff, +2 for double buff, -1 for single debuff, -2 for double debuff.

E.g. to check if actor ID 1 has a double AGI buff, you can do Conditional Branch -> Script:

$gameActors.actor(1).buff(6) > 1
(This is documented on the Script Call List: Buff Level in the States, Buffs, etc section.)
Thanks everyone, will try this out.

Original thread: https://forums.rpgmakerweb.com/threads/checking-if-double-debuff-is-applied.156595/