-
Notifications
You must be signed in to change notification settings - Fork 106
Conversation
Co-authored-by: MaxtorCoder <warsongkiller.s8@gmail.com>
Not sure if this should be merged yet, as I haven't figured out why the buff duration doesn't update in the aura bar immediately, instead only after casting another buff... Edit: At least the 2.4.3 client automatically updates the time immediately. I can't find the reason for why it's not updated immediately. I have checked against some data, but all of it says that things are as they should be. I'd appreciate if someone else could also take a look at this :) Edit: OK, this might just be an Addon issue. Feel free to merge if you have confirmed that it works for you Edit: It is and isn't an addon issue. The So now I'll need to figure out why
|
OK, can confirm, the remaining issue (buff time not updating immediately) is serverside and can be solved serverside. This PR is unaffected by that and can be merged now without any reservations from my side |
OK, I've been going at this from the wrong direction, I see. I have literally no idea how to do that. I've tried in many different ways but my C# is lacking in this. At the very least there is no Cache for characters that stores any data even tangentially related to Item IDs. Even the Gods I hate C#
HOW ELSE AM I SUPPOSED TO CONSTRUCT AN F-ING DICTIONARY IN PLACE THEN?! FFS. (This is obviously not directed at you fine folks who maintain this repo, but at Microsoft) Edit: public List<(WowGuid128, int)> InvSlots = new List<(WowGuid128, int)>(23); // equipped gear and bags and updateData.ActivePlayerData.InvSlots[i] = (GetGuidValue(updates, PLAYER_FIELD_INV_SLOT_HEAD + i * 2).To128(GetSession().GameState), OBJECT_FIELD_ENTRY); and if (activeData.InvSlots[i].Item2.Equals(enchantment.ItemID))
{
enchantment.ItemGUID = activeData.InvSlots[i].Item1;
break;
} Which in my mind should fix this issue, but I always get Index Out Of Bounds exceptions, so actually it does not. |
OK, all issues are resolved. In this state everything works as expected on 2.5.2 |
This PR makes temporary enchants update almost properly (buff duration in the aura bar still only updates if some other buff is applied that forces an update).
This PR also allows cancelling temporary enchants (right-clicking the buff to remove the temporary enchant)