mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10022] Fix damage for 14278 and 16511 and ranks when dagger is equipped
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
e823b30f4f
commit
7ed98198a7
3 changed files with 17 additions and 1 deletions
|
|
@ -5064,6 +5064,20 @@ void Spell::EffectWeaponDmg(SpellEffectIndex eff_idx)
|
|||
if (weapon && weapon->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_DAGGER)
|
||||
totalDamagePercentMod *= 1.5f; // 150% to daggers
|
||||
}
|
||||
// Ghostly Strike
|
||||
else if (m_caster->GetTypeId() == TYPEID_PLAYER && m_spellInfo->Id == 14278)
|
||||
{
|
||||
Item* weapon = ((Player*)m_caster)->GetWeaponForAttack(m_attackType,true,true);
|
||||
if (weapon && weapon->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_DAGGER)
|
||||
totalDamagePercentMod *= 1.44f; // 144% to daggers
|
||||
}
|
||||
// Hemorrhage
|
||||
else if (m_caster->GetTypeId() == TYPEID_PLAYER && (m_spellInfo->SpellFamilyFlags & UI64LIT(0x2000000)))
|
||||
{
|
||||
Item* weapon = ((Player*)m_caster)->GetWeaponForAttack(m_attackType,true,true);
|
||||
if (weapon && weapon->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_DAGGER)
|
||||
totalDamagePercentMod *= 1.45f; // 145% to daggers
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_PALADIN:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue