mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
[7262] Check security level of target for .die command for case when this command have lesser security level from default setting. Author: VladimirMangos
Original patch provided by NewAge. --HG-- branch : trunk
This commit is contained in:
@@ -3752,6 +3752,12 @@ bool ChatHandler::HandleDieCommand(const char* /*args*/)
|
||||
return false;
|
||||
}
|
||||
|
||||
if(target->GetTypeId()==TYPEID_PLAYER)
|
||||
{
|
||||
if(HasLowerSecurity((Player*)target,0,false))
|
||||
return false;
|
||||
}
|
||||
|
||||
if( target->isAlive() )
|
||||
{
|
||||
//m_session->GetPlayer()->DealDamage(target, target->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||
|
||||
Reference in New Issue
Block a user