Skip to content

Commit

Permalink
Fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
kamenitxan committed Aug 13, 2024
1 parent 6d723ae commit e156a49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/npc_enchanter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ class npc_enchantment : public CreatureScript

if (!enchantid)
{
player->GetSession()->SendNotification("Something went wrong in the code. It has been logged for developers and will be looked into, sorry for the inconvenience.");
ChatHandler(player->GetSession()).SendNotification("Something went wrong in the code. It has been logged for developers and will be looked into, sorry for the inconvenience.");
player->PlayerTalkClass->SendCloseGossip();
creature->HandleEmoteCommand(EMOTE_ONESHOT_LAUGH);
return;
Expand All @@ -1128,17 +1128,17 @@ class npc_enchantment : public CreatureScript
// Random enchantment notification
if (roll > 0 && roll < 33)
{
player->GetSession()->SendNotification("|cff00ff00Beauregard's bony finger crackles with energy when he touches |cffDA70D6%s|cff00ff00!", item->GetTemplate()->Name1.c_str());
ChatHandler(player->GetSession()).SendNotification("|cff00ff00Beauregard's bony finger crackles with energy when he touches |cffDA70D6%s|cff00ff00!", item->GetTemplate()->Name1.c_str());
// creature->HandleEmoteCommand(EMOTE_ONESHOT_POINT);
}
else if (roll > 33 && roll < 75)
{
player->GetSession()->SendNotification("|cff00ff00Beauregard holds |cffDA70D6%s |cff00ff00up in the air and utters a strange incantation!", item->GetTemplate()->Name1.c_str());
ChatHandler(player->GetSession()).SendNotification("|cff00ff00Beauregard holds |cffDA70D6%s |cff00ff00up in the air and utters a strange incantation!", item->GetTemplate()->Name1.c_str());
// creature->HandleEmoteCommand(EMOTE_ONESHOT_CHEER);
}
else
{
player->GetSession()->SendNotification("|cff00ff00Beauregard concentrates deeply while waving his wand over |cffDA70D6%s|cff00ff00!", item->GetTemplate()->Name1.c_str());
ChatHandler(player->GetSession()).SendNotification("|cff00ff00Beauregard concentrates deeply while waving his wand over |cffDA70D6%s|cff00ff00!", item->GetTemplate()->Name1.c_str());
// creature->HandleEmoteCommand(EMOTE_ONESHOT_WAVE);
}
creature->CastSpell(player, 12512); // enchantment visual
Expand Down

0 comments on commit e156a49

Please sign in to comment.