* Change .die command handler so that the user can get credit for the kill

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-08-20 18:24:45 +02:00
parent 1302b3b7a9
commit c674463df4

View File

@@ -4223,8 +4223,7 @@ bool ChatHandler::HandleDieCommand(const char* /*args*/)
if( target->isAlive() )
{
//m_session->GetPlayer()->DealDamage(target, target->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
m_session->GetPlayer()->Kill(target);
m_session->GetPlayer()->DealDamage(target, target->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
}
return true;