Fix Eluna OnCreatureKill

Signed-off-by: Zwisus <zlt988@gmail.com>
This commit is contained in:
Zwisus 2016-03-18 16:23:39 +08:00
parent 92ea73bbce
commit 551a28f9f9

View File

@ -1038,10 +1038,11 @@ void Unit::JustKilledCreature(Creature* victim, Player* responsiblePlayer)
{ mapInstance->OnCreatureDeath(victim); }
if (responsiblePlayer) // killedby Player, inform BG
{
if (BattleGround* bg = responsiblePlayer->GetBattleGround())
{
bg->HandleKillUnit(victim, responsiblePlayer);
}
// Used by Eluna
#ifdef ENABLE_ELUNA
sEluna->OnCreatureKill(responsiblePlayer, victim);