Merge pull request #747 from WinDanesz/patch-1225-2

Fixes Mark Sacrifice not doing damage with low spell potency
This commit is contained in:
Electroblob
2022-02-01 18:32:02 +00:00
committed by GitHub
@@ -63,7 +63,7 @@ public class MarkSacrifice extends SpellRay {
PotionEffect effect = event.getEntityLiving().getActivePotionEffect(WizardryPotions.mark_of_sacrifice);
if(effect != null && event.getSource().isMagicDamage()){
event.setAmount(event.getAmount() * (1 + effect.getAmplifier() * DAMAGE_INCREASE_PER_LEVEL));
event.setAmount(event.getAmount() * (1 + effect.getAmplifier()) * DAMAGE_INCREASE_PER_LEVEL);
event.getEntityLiving().removePotionEffect(WizardryPotions.mark_of_sacrifice);
}
}