Core/Player: Added SendPlayerBound method
Port From (https://github.com/TrinityCore/TrinityCore/commit/94aca04c3b1e9123541a75485dbae0d4265b18ef)
This commit is contained in:
@@ -2837,6 +2837,12 @@ namespace Game.Entities
|
|||||||
SendPacket(packet);
|
SendPacket(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SendPlayerBound(ObjectGuid binderGuid, uint areaId)
|
||||||
|
{
|
||||||
|
PlayerBound packet = new(binderGuid, areaId);
|
||||||
|
SendPacket(packet);
|
||||||
|
}
|
||||||
|
|
||||||
//Misc
|
//Misc
|
||||||
public uint GetTotalPlayedTime() { return m_PlayedTimeTotal; }
|
public uint GetTotalPlayedTime() { return m_PlayedTimeTotal; }
|
||||||
public uint GetLevelPlayedTime() { return m_PlayedTimeLevel; }
|
public uint GetLevelPlayedTime() { return m_PlayedTimeLevel; }
|
||||||
|
|||||||
@@ -5159,8 +5159,7 @@ namespace Game.Spells
|
|||||||
Log.outDebug(LogFilter.Spells, "EffectBind: New homebind MapId: {0}, AreaId: {1}, {2}, ", homeLoc.GetMapId(), areaId, homeLoc);
|
Log.outDebug(LogFilter.Spells, "EffectBind: New homebind MapId: {0}, AreaId: {1}, {2}, ", homeLoc.GetMapId(), areaId, homeLoc);
|
||||||
|
|
||||||
// zone update
|
// zone update
|
||||||
PlayerBound packet = new(m_caster.GetGUID(), areaId);
|
player.SendPlayerBound(m_caster.GetGUID(), areaId);
|
||||||
player.SendPacket(packet);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[SpellEffectHandler(SpellEffectName.TeleportToReturnPoint)]
|
[SpellEffectHandler(SpellEffectName.TeleportToReturnPoint)]
|
||||||
|
|||||||
Reference in New Issue
Block a user