Addon: [1.7.64] - Improved LootGoal state - many small fixes and optimizations #673
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes:
GetNumLootItems
SpellId
. This can help speed up InitState for high level characters.LOOT_RESET
/LOOT_CORPSE
were not properly awaited.LootFrame
andChatFrame
edit box is visibleCataclysm
: Ammo and Pet happiness always returned false - however should have been the oppositeApproachTargetGoal
: While thePullTargetGoal
was in progress and for some reason enteredApproachTargetGoal
, if the target was not yet entered combat, prematurely cleared target.RequirementFactory
: Added'MenuOpen'
and'ChatInputVisible'
GoapAgent
: setsGoapKey.pulled
LootGoal
:SkinningGoal
: If the loot window still openOnEnter
. It just logs the state dont early return. Significantly refactored Loot in order to keep track better of the states. More verbose logging. From now on also considers SoftInteract and its shenanigans like a herb or mining node is in the way...CombatGoal
: better support forKeyAction
interruptionApproachTargetGoal
: Better blacklist detection.CombatTracker
better integrationPullTargetGoal
: Less likely to become stuck during the pull. The thread blocked less likely. Better detection the pull state