mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
Module hook for kills performed by pets/totems (#912)
* Add hook for pet/totem kills * Use method to cast unit to creature
This commit is contained in:
@@ -1383,6 +1383,11 @@ void ScriptMgr::OnCreatureKill(Player* killer, Creature* killed)
|
||||
FOREACH_SCRIPT(PlayerScript)->OnCreatureKill(killer, killed);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnCreatureKilledByPet(Player* petOwner, Creature* killed)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnCreatureKilledByPet(petOwner, killed);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerKilledByCreature(Creature* killer, Player* killed)
|
||||
{
|
||||
#ifdef ELUNA
|
||||
|
||||
Reference in New Issue
Block a user