What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

getBuff "Bubble Trap" returning as null?

Mordark

Community Developer
Joined
Mar 31, 2014
Messages
291
Reaction score
4
I'm using it in this context:
Code:
if (getBuff(me.target, "Bubble Trap") == null)
break;


I've debugged it as well to Log:
Code:
if (getBuff(me.target, "Bubble Trap") == null)
Log("Target is NOT in a bubble");
Code:
if (getBuff(me.target "Bubble Trap") != null)
Log("Target is in a bubble");


It always logs: "Target is NOT in a bubble"

And yes, I'm on the US server.
 
The cast itself is called bubble trap but this doesnt mean that the buff on the creature is still called bubble trap.

Do the following: Cast bubble trap on a creature and then with getbuffs() get the buffs of the creature and check is "Bubble trap" is one of the buffs or that the name has changed since this sometimes happens.
 
The cast itself is called bubble trap but this doesnt mean that the buff on the creature is still called bubble trap.

Do the following: Cast bubble trap on a creature and then with getbuffs() get the buffs of the creature and check is "Bubble trap" is one of the buffs or that the name has changed since this sometimes happens.

I did just that, and when I mouse over the buff it says "Bubble Trap".
Just like the first hit from Fireball adds the buff "burning".
I have a similar problem trying to test for "burning" as well.
 
I wound up going with buff numbers instead of names. It's working now.
I whipped up a plugin that logs buff names and numbers that are on the target.

Tried the name that the plugin returned and still didn't work. Tried the number and it worked perfectly.
 
Back
Top