mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 21:04:26 +08:00
Update Spell.cpp
This commit is contained in:
parent
54a0e9de33
commit
1fdccaada7
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user