mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7261"
|
||||
#define REVISION_NR "7262"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
||||
Reference in New Issue
Block a user