Core/Creatures: temporarily revert all summon changes in order to keep the master branch functional until the implementation is done

This commit is contained in:
Ovahlord committed 2026-02-28 11:06:35 +01:00
1 parent 3f65afb962
commit 266d1d7717
32 files changed
+598 -1384

No files matched your search

+4 -3
View File
@@ -3710,9 +3710,10 @@ void Spell::_cast(bool skipCheck)
return;
}
if (m_spellInfo->HasAttribute(SPELL_ATTR1_DISMISS_PET_FIRST))
if (Unit* unitCaster = m_caster->ToUnit())
unitCaster->DismissPet();
if (Unit* unitCaster = m_caster->ToUnit())
if (m_spellInfo->HasAttribute(SPELL_ATTR1_DISMISS_PET_FIRST))
if (Creature* pet = ObjectAccessor::GetCreature(*m_caster, unitCaster->GetPetGUID()))
pet->DespawnOrUnsummon();
PrepareTriggersExecutedOnHit();