fix(Core): Adjustments to summoning ritual object handling. (#19600)

* Init.

* Allow self-summoning.

* Revert unintended change.

Self-summoning still works fine without this being removed, I see no harm in putting it back.
This commit is contained in:
Benjamin Jackson
2024-08-13 11:12:05 -04:00
committed by GitHub
parent ad411b49b7
commit 67010623a0
3 changed files with 4 additions and 10 deletions

View File

@@ -5380,9 +5380,6 @@ void Spell::EffectTransmitted(SpellEffIndex effIndex)
}
Map* cMap = m_caster->GetMap();
// if gameobject is summoning object, it should be spawned right on caster's position
if (goinfo->type == GAMEOBJECT_TYPE_SUMMONING_RITUAL)
m_caster->GetPosition(fx, fy, fz);
GameObject* pGameObj = sObjectMgr->IsGameObjectStaticTransport(name_id) ? new StaticTransport() : new GameObject();