mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
Add Outdoor PvP handlers to various files
This commit is contained in:
parent
525ec3ea4c
commit
e955c3bc8f
6 changed files with 68 additions and 4 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include "InstanceData.h"
|
||||
#include "MapPersistentStateMgr.h"
|
||||
#include "BattleGroundMgr.h"
|
||||
#include "OutdoorPvP/OutdoorPvP.h"
|
||||
#include "Spell.h"
|
||||
#include "Util.h"
|
||||
#include "GridNotifiers.h"
|
||||
|
|
@ -755,6 +756,10 @@ bool Creature::Create(uint32 guidlow, CreatureCreatePos& cPos, CreatureInfo cons
|
|||
if (InstanceData* iData = GetMap()->GetInstanceData())
|
||||
iData->OnCreatureCreate(this);
|
||||
|
||||
// Notify the outdoor pvp script
|
||||
if (OutdoorPvP* outdoorPvP = sOutdoorPvPMgr.GetScript(GetZoneId()))
|
||||
outdoorPvP->HandleCreatureCreate(this);
|
||||
|
||||
switch (GetCreatureInfo()->rank)
|
||||
{
|
||||
case CREATURE_ELITE_RARE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue