*Add a config option for .die command behavior

--HG--
branch : trunk
This commit is contained in:
maximius committed 2009-08-20 13:22:07 -07:00
1 parent a63b457b3c
commit eb81138e6d
4 files changed
+17 -3

No files matched your search

+5 -2
View File
@@ -4223,8 +4223,11 @@ 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);
}
if(sWorld.getConfig(CONFIG_DIE_COMMAND_MODE))
m_session->GetPlayer()->Kill(target);
else
m_session->GetPlayer()->DealDamage(target, target->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
}
return true;
}