Gilderoy
New Member
- Joined
- May 10, 2010
- Messages
- 761
- Reaction score
- 16
Hello all,
is Styx.WoWInternals.WoWObjects.WoWItem.Cooldown broken?
If I call it on an item not in cooldown it return 0 and that's fine.
If i call it on an item IN cooldown it return a random float, always the same float no matter how much cooldown left (for example always 48890.64) until the cooldown end and then start to give 0 again.
the code I'm using is this
with the <> in the right places
is Styx.WoWInternals.WoWObjects.WoWItem.Cooldown broken?
If I call it on an item not in cooldown it return 0 and that's fine.
If i call it on an item IN cooldown it return a random float, always the same float no matter how much cooldown left (for example always 48890.64) until the cooldown end and then start to give 0 again.
the code I'm using is this
Code:
var Trinket1 = ObjectManager.GetObjectsOfType Styx.WoWInternals.WoWObjects.WoWItem <>(false).FirstOrDefault(i => i.Name == name);
if (Trinket1 != null){slog("ID1 {0} CD1 {1}", Trinket1.Entry, Trinket1.Cooldown);}