mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[Eluna] Applied a load of missing hooks
This commit is contained in:
parent
253017e2eb
commit
7332173b6e
24 changed files with 462 additions and 14 deletions
|
|
@ -1138,13 +1138,14 @@ uint32 Unit::DealDamage(Unit* pVictim, uint32 damage, CleanDamage const* cleanDa
|
|||
if (GetTypeId() == TYPEID_UNIT && ((Creature*)this)->AI())
|
||||
{ ((Creature*)this)->AI()->KilledUnit(pVictim); }
|
||||
|
||||
#ifdef ENABLE_ELUNA
|
||||
if (Creature* killer = ToCreature())
|
||||
{
|
||||
// Used by Eluna
|
||||
#ifdef ENABLE_ELUNA
|
||||
if (Player* killed = pVictim->ToPlayer())
|
||||
sEluna->OnPlayerKilledByCreature(killer, killed);
|
||||
#endif /* ENABLE_ELUNA */
|
||||
}
|
||||
#endif
|
||||
|
||||
// Call AI OwnerKilledUnit (for any current summoned minipet/guardian/protector)
|
||||
PetOwnerKilledUnit(pVictim);
|
||||
|
|
@ -1210,9 +1211,10 @@ uint32 Unit::DealDamage(Unit* pVictim, uint32 damage, CleanDamage const* cleanDa
|
|||
{ outdoorPvP->HandlePlayerKill(player_tap, playerVictim); }
|
||||
}
|
||||
|
||||
// Used by Eluna
|
||||
#ifdef ENABLE_ELUNA
|
||||
sEluna->OnPVPKill(player_tap, playerVictim);
|
||||
#endif
|
||||
#endif /* ENABLE_ELUNA */
|
||||
}
|
||||
}
|
||||
else // Killed creature
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue