Core/Misc: Fixed player corpse looting, added player corpse loot and some more
Port From (https://github.com/TrinityCore/TrinityCore/commit/89f728cd5b6ae3041fdae3c853ac4b0ac5f0a848)
This commit is contained in:
@@ -1015,6 +1015,19 @@ namespace Game.Entities
|
||||
GetMap().GetZoneAndAreaId(GetPhaseShift(), out zoneid, out areaid, posX, posY, posZ);
|
||||
}
|
||||
|
||||
public bool IsInWorldPvpZone()
|
||||
{
|
||||
switch (GetZoneId())
|
||||
{
|
||||
case 4197: // Wintergrasp
|
||||
case 5095: // Tol Barad
|
||||
case 6941: // Ashran
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public InstanceScript GetInstanceScript()
|
||||
{
|
||||
Map map = GetMap();
|
||||
|
||||
Reference in New Issue
Block a user