diff options
| author | Shauren <shauren.trinity@gmail.com> | 2024-02-11 00:58:21 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2024-02-11 00:58:21 +0100 |
| commit | b4064d38c83bc26efa20a248426a9b8cfea6793f (patch) | |
| tree | fb433e67f1b2733ac4efb45321f6bf3572e2056f /src/server/game/Spells | |
| parent | 9267ac27dd0e006b04b7dc70ca91b91e2f4d5476 (diff) | |
Core/Spells: Allow spells with SPELL_DAMAGE_CLASS_NONE to crit
Diffstat (limited to 'src/server/game/Spells')
| -rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 4 | ||||
| -rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 14 |
2 files changed, 2 insertions, 16 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index fad5900f433..e86637c6780 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -4226,7 +4226,7 @@ void AuraEffect::HandleModSpellCritChance(AuraApplication const* aurApp, uint8 m if (target->GetTypeId() == TYPEID_PLAYER) target->ToPlayer()->UpdateSpellCritChance(); else - target->m_baseSpellCritChance += (apply) ? GetAmount() : -GetAmount(); + target->m_baseSpellCritChance += apply ? GetAmount() : -GetAmount(); } void AuraEffect::HandleAuraModCritPct(AuraApplication const* aurApp, uint8 mode, bool apply) const @@ -4238,7 +4238,7 @@ void AuraEffect::HandleAuraModCritPct(AuraApplication const* aurApp, uint8 mode, if (target->GetTypeId() != TYPEID_PLAYER) { - target->m_baseSpellCritChance += (apply) ? GetAmount() : -GetAmount(); + target->m_baseSpellCritChance += apply ? GetAmount() : -GetAmount(); return; } diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 621a13e8124..16b010ba2eb 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3481,20 +3481,6 @@ void SpellMgr::LoadSpellInfoCorrections() }); } - // Allows those to crit - ApplySpellFix({ - 379, // Earth Shield - 71607, // Item - Bauble of True Blood 10m - 71646, // Item - Bauble of True Blood 25m - 71610, // Item - Althor's Abacus trigger 10m - 71641, // Item - Althor's Abacus trigger 25m - 373462 // Crystalline Reflection HEAL - }, [](SpellInfo* spellInfo) - { - // We need more spells to find a general way (if there is any) - spellInfo->DmgClass = SPELL_DAMAGE_CLASS_MAGIC; - }); - ApplySpellFix({ 63026, // Summon Aspirant Test NPC (HACK: Target shouldn't be changed) 63137 // Summon Valiant Test (HACK: Target shouldn't be changed; summon position should be untied from spell destination) |
