mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[0114] Updated "item_template" Thanks Fabi Fix some DBC problems, some clean.
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
a6b1264405
commit
73ec9c2ce4
14 changed files with 170 additions and 348 deletions
|
|
@ -394,7 +394,7 @@ Spell::Spell(Unit* caster, SpellEntry const* info, bool triggered, ObjectGuid or
|
|||
if ((m_caster->getClassMask() & CLASSMASK_WAND_USERS) != 0 && m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (Item* pItem = ((Player*)m_caster)->GetWeaponForAttack(RANGED_ATTACK))
|
||||
m_spellSchoolMask = SpellSchoolMask(1 << pItem->GetProto()->Damage[0].DamageType);
|
||||
m_spellSchoolMask = SpellSchoolMask(1 << pItem->GetProto()->DamageType);
|
||||
}
|
||||
}
|
||||
// Set health leech amount to zero
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue