mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection
This commit is contained in:
@@ -729,9 +729,8 @@ public:
|
||||
Player* owner = target->GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||
if (!owner)
|
||||
{
|
||||
handler->SendSysMessage(LANG_PLAYER_NOT_FOUND);
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
owner = handler->GetSession()->GetPlayer();
|
||||
target = owner;
|
||||
}
|
||||
|
||||
std::string nameLink = handler->GetNameLink(owner);
|
||||
|
||||
Reference in New Issue
Block a user