Skip to content

Commit

Permalink
Send generic gossip if no points to spend.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnchyDev committed Jun 10, 2024
1 parent 23aab04 commit 621d190
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Attriboost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,15 @@ void SendAllocateMenu(Player* player, Creature* creature)

AddGossipItemFor(player, GOSSIP_ICON_DOT, "|TInterface\\MONEYFRAME\\Arrow-Left-Down:16|t Back", GOSSIP_SENDER_MAIN, ATTR_GOSSIP_ALLOCATE_RETURN);

SendGossipMenuFor(player, ATTR_NPC_TEXT_HAS_ATTRIBUTES, creature);

if (HasAttributesToSpend(player))
{
SendGossipMenuFor(player, ATTR_NPC_TEXT_HAS_ATTRIBUTES, creature);
}
else
{
SendGossipMenuFor(player, ATTR_NPC_TEXT_GENERIC, creature);
}
}

void SendSettingsMenu(Player* player, Creature* creature)
Expand Down

0 comments on commit 621d190

Please sign in to comment.