mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[8349] Include offhand weapon part and aply proper dagger bonus for spell 51723.
This commit is contained in:
parent
0d9fba971d
commit
cb29748467
3 changed files with 16 additions and 1 deletions
|
|
@ -4491,6 +4491,13 @@ void Spell::EffectWeaponDmg(uint32 i)
|
|||
if(found)
|
||||
totalDamagePercentMod *= 1.2f; // 120% if poisoned
|
||||
}
|
||||
// Fan of Knives
|
||||
else if (m_caster->GetTypeId()==TYPEID_PLAYER && (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0004000000000000)))
|
||||
{
|
||||
Item* weapon = ((Player*)m_caster)->GetWeaponForAttack(m_attackType,true);
|
||||
if (weapon && weapon->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_DAGGER)
|
||||
totalDamagePercentMod *= 1.5f; // 150% to daggers
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_PALADIN:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue