diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index e14e5a4c1..f247d34e1 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5178,16 +5178,16 @@ void Spell::EffectWeaponDmg(SpellEffectIndex eff_idx) // 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 + 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 + 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; } diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 1865e8eb0..4ca27eb73 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -2005,14 +2005,18 @@ void Unit::CalculateDamageAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolM case SPELLFAMILY_ROGUE: { // Cheat Death (make less prio with Guardian Spirit case) - if (!preventDeathSpell && spellProto->SpellIconID == 2109 && - GetTypeId()==TYPEID_PLAYER && // Only players - !((Player*)this)->HasSpellCooldown(31231) && - // Only if no cooldown - roll_chance_i((*i)->GetModifier()->m_amount)) - // Only if roll + if (spellProto->SpellIconID == 2109) { - preventDeathSpell = (*i)->GetSpellProto(); + if (!preventDeathSpell && + GetTypeId()==TYPEID_PLAYER && // Only players + !((Player*)this)->HasSpellCooldown(31231) && + // Only if no cooldown + roll_chance_i((*i)->GetModifier()->m_amount)) + // Only if roll + { + preventDeathSpell = (*i)->GetSpellProto(); + } + // always skip this spell in charge dropping, absorb amount calculation since it has chance as m_amount and doesn't need to absorb any damage continue; } break; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 38df54c50..f9705f5e1 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10475" + #define REVISION_NR "10476" #endif // __REVISION_NR_H__