Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection

This commit is contained in:
Shauren authored and Aokromes committed 2016-07-20 19:34:45 +02:00
1 parent d979a98d4b
commit 3d991107e2
1 file changed
+2 -3
+2 -3
View File
@@ -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);