Skip to content

Commit

Permalink
Specify error in bg
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah committed Dec 7, 2024
1 parent 10cc1f1 commit 88b55b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mod_chromiecraft_smartstone_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,15 @@ class item_chromiecraft_smartstone : public ItemScript
switch (action)
{
case SMARTSTONE_ACTION_BARBERSHOP:
if (!sSmartstone->CanUseSmartstone(player) || sSmartstone->GetBarberDuration() == Seconds::zero())
if (sSmartstone->GetBarberDuration() == Seconds::zero())
return;

if (!sSmartstone->CanUseSmartstone(player))
{
player->SendSystemMessage("You cannot use this feature inside instances or battlegrounds.");
return;
}

if (player->FindNearestCreature(NPC_BARBER, 100.0f))
{
player->SendSystemMessage("The barber is already summoned.");
Expand Down

0 comments on commit 88b55b8

Please sign in to comment.