mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 13:22:48 +01:00
Core/Commands: Added security check in .damage
This commit is contained in:
@@ -1859,6 +1859,12 @@ bool ChatHandler::HandleDamageCommand(const char * args)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (HasLowerSecurity((Player*)target, 0, false))
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!target->isAlive())
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user