Core/Entities: Phasing rewrite

* Optimized phase visibility checking
* Handle all phase flags

Closes #16758
Closes #21119
This commit is contained in:
Shauren
2018-01-28 11:37:20 +01:00
parent 1e62b53c66
commit 91be2332e2
80 changed files with 1802 additions and 885 deletions

View File

@@ -32,6 +32,7 @@
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "Pet.h"
#include "PhasingHandler.h"
#include "Player.h"
#include "RBAC.h"
#include "ScriptMgr.h"
@@ -762,7 +763,7 @@ void InstanceScript::UpdatePhasing()
Map::PlayerList const& players = instance->GetPlayers();
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
if (Player* player = itr->GetSource())
player->SendUpdatePhasing();
PhasingHandler::SendToPlayer(player);
}
std::string InstanceScript::GetBossStateName(uint8 state)