mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
refactor(Core/Chat): PSendSysMessage to fmt (#19449)
* refactor(Core/Chat): PSendSysMessage to `fmt`
This commit is contained in:
@@ -108,19 +108,19 @@ public:
|
||||
uint32 spellDifficultyId = sSpellMgr->GetSpellDifficultyId(spell->Id);
|
||||
if (bounds.first != bounds.second || spellDifficultyId)
|
||||
{
|
||||
handler->SendErrorMessage("Spell %u cannot be learnt using a command!", spell->Id);
|
||||
handler->SendErrorMessage("Spell {} cannot be learnt using a command!", spell->Id);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if pet already has it
|
||||
if (pet->HasSpell(spell->Id))
|
||||
{
|
||||
handler->SendErrorMessage("Pet already has spell: %u", spell->Id);
|
||||
handler->SendErrorMessage("Pet already has spell: {}", spell->Id);
|
||||
return false;
|
||||
}
|
||||
|
||||
pet->learnSpell(spell->Id);
|
||||
handler->PSendSysMessage("Pet has learned spell %u", spell->Id);
|
||||
handler->PSendSysMessage("Pet has learned spell {}", spell->Id);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user