Core/Characters: Made homebind location a WorldLocation (this implicitly adds orientation)
Port From (https://github.com/TrinityCore/TrinityCore/commit/68c2fc8ff58d9ad272e8e17391a6bb6c3743923b)
This commit is contained in:
@@ -820,7 +820,7 @@ namespace Game.Spells
|
||||
case Targets.DestHome:
|
||||
Player playerCaster = m_caster.ToPlayer();
|
||||
if (playerCaster != null)
|
||||
dest = new SpellDestination(playerCaster.GetHomebind().posX, playerCaster.GetHomebind().posY, playerCaster.GetHomebind().posZ, playerCaster.GetOrientation(), playerCaster.GetHomebind().GetMapId());
|
||||
dest = new SpellDestination(playerCaster.GetHomebind());
|
||||
break;
|
||||
case Targets.DestDb:
|
||||
SpellTargetPosition st = Global.SpellMgr.GetSpellTargetPosition(m_spellInfo.Id, spellEffectInfo.EffectIndex);
|
||||
|
||||
@@ -5120,7 +5120,7 @@ namespace Game.Spells
|
||||
player.SetHomebind(homeLoc, areaId);
|
||||
player.SendBindPointUpdate();
|
||||
|
||||
Log.outDebug(LogFilter.Spells, "EffectBind: New homebind MapId: {0}, AreaId: {1}, {2}, ", homeLoc.GetMapId(), areaId, homeLoc);
|
||||
Log.outDebug(LogFilter.Spells, $"EffectBind: New homebind: {homeLoc}, AreaId: {areaId}");
|
||||
|
||||
// zone update
|
||||
player.SendPlayerBound(m_caster.GetGUID(), areaId);
|
||||
|
||||
Reference in New Issue
Block a user