Skip to content

Commit

Permalink
Creature summon: Keep creature pet active so it can properly be remov…
Browse files Browse the repository at this point in the history
…ed from active during Map::Remove
  • Loading branch information
mostlikely4r authored and killerwife committed Nov 12, 2024
1 parent dc062a5 commit 87e8721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/MotionGenerators/HomeMovementGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void HomeMovementGenerator<Creature>::Finalize(Creature& owner)
pSummoner->AI()->SummonedJustReachedHome(&owner);
}

if (!wasActive)
if (!wasActive && owner.IsInWorld())
owner.SetActiveObjectState(false);

owner.SetCombatStartPosition(Position());
Expand Down

0 comments on commit 87e8721

Please sign in to comment.