Skip to content

Commit 4ec687c

Browse files
committed
[3147] Scripted creatures which are on transport shouldn't move to home position
1 parent 05ddea0 commit 4ec687c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/sc_creature.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ void ScriptedAI::EnterEvadeMode()
130130
m_creature->DeleteThreatList();
131131
m_creature->CombatStop(true);
132132

133-
if (m_creature->isAlive())
133+
// only alive creatures that are not on transport can return to home position
134+
if (m_creature->isAlive() && !m_creature->IsBoarded())
134135
m_creature->GetMotionMaster()->MoveTargetedHome();
135136

136137
m_creature->SetLootRecipient(NULL);

sd2_revision_nr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#ifndef __SD2_REVISION_NR_H__
22
#define __SD2_REVISION_NR_H__
3-
#define SD2_REVISION_NR "3146"
3+
#define SD2_REVISION_NR "3147"
44
#endif // __SD2_REVISION_NR_H__

0 commit comments

Comments
 (0)