Core/Player: Added SendPlayerBound method

Port From (https://github.com/TrinityCore/TrinityCore/commit/94aca04c3b1e9123541a75485dbae0d4265b18ef)
This commit is contained in:
hondacrx
2021-10-13 14:34:26 -04:00
parent 2449a6de83
commit 084ec5d631
2 changed files with 7 additions and 2 deletions
+6
View File
@@ -2837,6 +2837,12 @@ namespace Game.Entities
SendPacket(packet);
}
public void SendPlayerBound(ObjectGuid binderGuid, uint areaId)
{
PlayerBound packet = new(binderGuid, areaId);
SendPacket(packet);
}
//Misc
public uint GetTotalPlayedTime() { return m_PlayedTimeTotal; }
public uint GetLevelPlayedTime() { return m_PlayedTimeLevel; }
+1 -2
View File
@@ -5159,8 +5159,7 @@ namespace Game.Spells
Log.outDebug(LogFilter.Spells, "EffectBind: New homebind MapId: {0}, AreaId: {1}, {2}, ", homeLoc.GetMapId(), areaId, homeLoc);
// zone update
PlayerBound packet = new(m_caster.GetGUID(), areaId);
player.SendPacket(packet);
player.SendPlayerBound(m_caster.GetGUID(), areaId);
}
[SpellEffectHandler(SpellEffectName.TeleportToReturnPoint)]