mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Core/Maps: Changed SMSG_SET_PHASE_SHIFT to send either 8 or 0 depending on whether the player is phased or not.
This commit is contained in:
@@ -1756,12 +1756,7 @@ void WorldSession::SendSetPhaseShift(std::set<uint32> const& phaseIds, std::set<
|
||||
|
||||
data.WriteByteSeq(guid[1]);
|
||||
|
||||
uint32 flag = 8;
|
||||
for (std::set<uint32>::const_iterator itr = phaseIds.begin(); itr != phaseIds.end(); ++itr)
|
||||
if (PhaseEntry const* phaseEntry = sPhaseStore.LookupEntry(*itr))
|
||||
flag |= phaseEntry->Flag;
|
||||
|
||||
data << uint32(flag); // flags (not phasemask)
|
||||
data << uint32(phaseIds.size() ? 0 : 8); // flags (not phasemask)
|
||||
|
||||
data.WriteByteSeq(guid[2]);
|
||||
data.WriteByteSeq(guid[6]);
|
||||
|
||||
Reference in New Issue
Block a user