Update Spell.cpp

This commit is contained in:
天鹭 2025-10-11 09:26:59 +08:00 committed by GitHub
parent 54a0e9de33
commit 1fdccaada7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7693,6 +7693,8 @@ SpellCastResult Spell::CheckItems()
if (Item* weaponItem = m_caster->ToPlayer()->GetWeaponForAttack(m_attackType, true))
m_weaponItemGUID = weaponItem->GetGUID();
else
m_weaponItemGUID = ObjectGuid::Empty;
}
return SPELL_CAST_OK;