Skip to content

Commit

Permalink
Merge pull request #29 from kamenitxan/bugfix_issue_28
Browse files Browse the repository at this point in the history
Fixes #28
  • Loading branch information
Nyeriah authored Aug 13, 2024
2 parents 6d723ae + e156a49 commit 645d25d
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 645d25d

Please sign in to comment.