Core/Spells: Allow spells with SPELL_DAMAGE_CLASS_NONE to crit

Port From (https://github.com/TrinityCore/TrinityCore/commit/b4064d38c83bc26efa20a248426a9b8cfea6793f)
This commit is contained in:
hondacrx
2024-02-21 17:41:12 -05:00
parent e81d2d4f1f
commit 1806eb52a3
5 changed files with 27 additions and 27 deletions
+3 -3
View File
@@ -3829,7 +3829,7 @@ namespace Game.Spells
if (target.IsTypeId(TypeId.Player))
target.ToPlayer().UpdateSpellHitChances();
else
target.ModSpellHitChance += (apply) ? GetAmount() : (-GetAmount());
target.ModSpellHitChance += apply ? GetAmount() : (-GetAmount());
}
[AuraEffectHandler(AuraType.ModSpellCritChance)]
@@ -3843,7 +3843,7 @@ namespace Game.Spells
if (target.IsTypeId(TypeId.Player))
target.ToPlayer().UpdateSpellCritChance();
else
target.BaseSpellCritChance += (apply) ? GetAmount() : -GetAmount();
target.BaseSpellCritChance += apply ? GetAmount() : -GetAmount();
}
[AuraEffectHandler(AuraType.ModCritPct)]
@@ -3856,7 +3856,7 @@ namespace Game.Spells
if (!target.IsTypeId(TypeId.Player))
{
target.BaseSpellCritChance += (apply) ? GetAmount() : -GetAmount();
target.BaseSpellCritChance += apply ? GetAmount() : -GetAmount();
return;
}