Core/Commands: Added security check in .damage
This commit is contained in:
@@ -1859,6 +1859,12 @@ bool ChatHandler::HandleDamageCommand(const char * args)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||||
|
{
|
||||||
|
if (HasLowerSecurity((Player*)target, 0, false))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!target->isAlive())
|
if (!target->isAlive())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user