mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
Refactored db_scripts
The unity! - Based on the original work of H0zen for Zero.
This commit is contained in:
parent
a92011c6bf
commit
695651324c
15 changed files with 415 additions and 482 deletions
|
|
@ -1424,7 +1424,7 @@ void Unit::JustKilledCreature(Creature* victim, Player* responsiblePlayer)
|
|||
{ outdoorPvP->HandleCreatureDeath(victim); }
|
||||
|
||||
// Start creature death script
|
||||
GetMap()->ScriptsStart(sCreatureDeathScripts, victim->GetEntry(), victim, responsiblePlayer ? responsiblePlayer : this);
|
||||
GetMap()->ScriptsStart(DBS_ON_CREATURE_DEATH, victim->GetEntry(), victim, responsiblePlayer ? responsiblePlayer : this);
|
||||
|
||||
if (victim->IsLinkingEventTrigger())
|
||||
{ victim->GetMap()->GetCreatureLinkingHolder()->DoCreatureLinkingEvent(LINKING_EVENT_DIE, victim); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue