Thanks like always... was my fault. You can close this bug request.
1. GetBuff(spellName: "") => Works, I took the ingame name but the english name was requiered.
2. HaveBuff works now for some reasons... no clue may I was testing at a dummy.
The ObjectManager.Target works way better, thanks for that hint.
Hi,
Logging.Write("===================");
var t = System.Diagnostics.Stopwatch.StartNew();
uint id = 8326;
var n = "Ghost";
var s = System.Diagnostics.Stopwatch.StartNew();
Logging.Write("TargetObject.HaveBuff(id) > " + wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.HaveBuff(id) + " > " + s.ElapsedMilliseconds);
s.Restart();
Logging.Write("TargetObject.GetBuff(n) > " + wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.GetBuff(n) + " > " + s.ElapsedMilliseconds);
s.Restart();
Logging.Write("Target.HaveBuff(id) > " + wManager.Wow.ObjectManager.ObjectManager.Target.HaveBuff(id) + " > " + s.ElapsedMilliseconds);
s.Restart();
Logging.Write("Target.GetBuff(n) > " + wManager.Wow.ObjectManager.ObjectManager.Target.GetBuff(n) + " > " + s.ElapsedMilliseconds);
Logging.Write(t.ElapsedMilliseconds + " ms ========");
I can't reproduce problem, if you can code that I can run for that.
But it is better to use objectmanager.target to get character target (it is more safe and bot cache result)