diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 8977f4e8c..ecdf6a514 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1299,7 +1299,10 @@ void GameObject::Use(Unit* user) if (GetUniqueUseCount() < info->summoningRitual.reqParticipants) return; - spellCaster = GetMap()->GetPlayer(m_firstUser); + // owner is first user for non-wild GO objects, if it offline value already set to current user + if (GetOwnerGuid().IsEmpty()) + if (Player* firstUser = GetMap()->GetPlayer(m_firstUser)) + spellCaster = firstUser; spellId = info->summoningRitual.spellId; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8fdfa7416..8e63f0ed4 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10885" + #define REVISION_NR "10886" #endif // __REVISION_NR_H__