Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection
This commit is contained in:
1 parent
d979a98d4b
commit
3d991107e2
1 file changed
+2
-3
@@ -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