Merge pull request #6397 from deathbeam/fix-bug-thing
Check if any experience was gained in skill before tracking action
This commit is contained in:
@@ -199,7 +199,6 @@ class XpPanel extends PluginPanel
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void updateTotal(XpSnapshotTotal xpSnapshotTotal)
|
||||
{
|
||||
// if player has gained exp and hasn't switched displays yet, hide error panel and show overall info
|
||||
|
||||
@@ -187,7 +187,7 @@ class XpState
|
||||
{
|
||||
XpStateSingle state = getSkill(skill);
|
||||
|
||||
if (state.getStartXp() == -1 || npcHealth == null || npc != interactedNPC)
|
||||
if (state.getXpGained() <= 0 || npcHealth == null || npc != interactedNPC)
|
||||
{
|
||||
return XpUpdateResult.NO_CHANGE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user