Fix Eluna OnCreatureKill
Signed-off-by: Zwisus <zlt988@gmail.com>
This commit is contained in:
parent
92ea73bbce
commit
551a28f9f9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user