We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f9ffe commit 8d6e6c3Copy full SHA for 8d6e6c3
src/server/game/Spells/Spell.cpp
@@ -3448,7 +3448,7 @@ void Spell::_cast(bool skipCheck)
3448
3449
if (Unit* unitCaster = m_caster->ToUnit())
3450
if (m_spellInfo->HasAttribute(SPELL_ATTR1_DISMISS_PET))
3451
- if (Creature* pet = ObjectAccessor::GetCreature(*m_caster, unitCaster->GetPetGUID()))
+ if (Creature* pet = ObjectAccessor::GetCreatureOrPetOrVehicle(*m_caster, unitCaster->GetPetGUID()))
3452
pet->DespawnOrUnsummon();
3453
3454
PrepareTriggersExecutedOnHit();
0 commit comments