[Bug Fix] Prevent critical DOTs from affecting beneficial damage over time (#1710)

* no critical from lich

* better
This commit is contained in:
KayenEQ 2021-11-11 18:32:16 -05:00 committed by GitHub
parent fa07064466
commit 239033a269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,7 @@ int32 Mob::GetActDoTDamage(uint16 spell_id, int32 value, Mob* target) {
if (spells[spell_id].override_crit_chance > 0 && chance > spells[spell_id].override_crit_chance)
chance = spells[spell_id].override_crit_chance;
if (chance > 0 && (zone->random.Roll(chance))) {
if (!spells[spell_id].good_effect && chance > 0 && (zone->random.Roll(chance))) {
int32 ratio = 200;
ratio += itembonuses.DotCritDmgIncrease + spellbonuses.DotCritDmgIncrease + aabonuses.DotCritDmgIncrease;
value = base_value*ratio/100;