Core/Spells: Using hearthstone will teleport caster to map again
Port From (https://github.com/TrinityCore/TrinityCore/commit/d342be8c79a126ef01db9423484449d3ba7d97c7)
This commit is contained in:
@@ -2773,7 +2773,12 @@ namespace Game.Entities
|
|||||||
SetRaidDifficultyID(CheckLoadedRaidDifficultyID(raidDifficulty));
|
SetRaidDifficultyID(CheckLoadedRaidDifficultyID(raidDifficulty));
|
||||||
SetLegacyRaidDifficultyID(CheckLoadedLegacyRaidDifficultyID(legacyRaidDifficulty));
|
SetLegacyRaidDifficultyID(CheckLoadedLegacyRaidDifficultyID(legacyRaidDifficulty));
|
||||||
|
|
||||||
var RelocateToHomebind = new Action(() => { instance_id = 0; Relocate(homebind); });
|
var RelocateToHomebind = new Action(() =>
|
||||||
|
{
|
||||||
|
mapId = homebind.GetMapId();
|
||||||
|
instance_id = 0;
|
||||||
|
Relocate(homebind);
|
||||||
|
});
|
||||||
|
|
||||||
_LoadGroup(holder.GetResult(PlayerLoginQueryLoad.Group));
|
_LoadGroup(holder.GetResult(PlayerLoginQueryLoad.Group));
|
||||||
|
|
||||||
|
|||||||
@@ -7874,6 +7874,13 @@ namespace Game.Spells
|
|||||||
TransportGUID = ObjectGuid.Empty;
|
TransportGUID = ObjectGuid.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SpellDestination(WorldLocation loc) : this()
|
||||||
|
{
|
||||||
|
Position.WorldRelocate(loc);
|
||||||
|
TransportGUID.Clear();
|
||||||
|
TransportOffset.Relocate(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
public SpellDestination(WorldObject wObj) : this()
|
public SpellDestination(WorldObject wObj) : this()
|
||||||
{
|
{
|
||||||
TransportGUID = wObj.GetTransGUID();
|
TransportGUID = wObj.GetTransGUID();
|
||||||
|
|||||||
Reference in New Issue
Block a user