Battlefields: Move BF scripts out of game

This commit introduces the usual script interface
for battlefields.
This commit is contained in:
Carbenium authored and Ovahlord committed 2022-10-09 00:35:07 +02:00
1 parent d5f7d7b754
commit 0ef220fca0
17 files changed
+320 -206

No files matched your search

@@ -1240,6 +1240,20 @@ void WorldObject::RemoveFromWorld()
Object::RemoveFromWorld();
}
bool WorldObject::IsInWorldPvpZone() const
{
switch (GetZoneId())
{
case 4197: // Wintergrasp
case 5095: // Tol Barad
return true;
break;
default:
return false;
break;
}
}
InstanceScript* WorldObject::GetInstanceScript() const
{
Map* map = GetMap();