Skip to content

Commit

Permalink
Scripts: Add RelayScript executed on waypoint reach for 'move to resp…
Browse files Browse the repository at this point in the history
…awn position'
  • Loading branch information
miraco authored and killerwife committed Feb 10, 2025
1 parent 81d5d9b commit 33e889f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/DBScripts/ScriptMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ bool ScriptAction::ExecuteDbscriptCommand(WorldObject* pSource, WorldObject* pTa
if (m_script->textId[0] == 1 || m_script->textId[0] == 2 && !creature->GetCreatureGroup())
{
Position const& respPos = creature->GetRespawnPosition();
creature->GetMotionMaster()->MovePoint(0, respPos, ForcedMovement(m_script->moveTo.forcedMovement), 0.f, true);
creature->GetMotionMaster()->MovePoint(0, respPos, ForcedMovement(m_script->moveTo.forcedMovement), 0.f, true, creature->GetObjectGuid(), m_script->moveTo.relayId);
}
else if (m_script->textId[0] == 2)
{
Expand Down

0 comments on commit 33e889f

Please sign in to comment.