v0.9.2b: fixed attacking corrupted enemies always giving cleave effect

This commit is contained in:
Evan Debenham
2021-03-20 12:48:06 -04:00
parent 023a5972f0
commit 634d16fa79

View File

@@ -86,8 +86,7 @@ public class Combo extends Buff implements ActionIndicator.Action {
count++; count++;
comboTime = 5f; comboTime = 5f;
//TODO this won't count a kill on an enemy that gets corruped by corrupting I think? if (!enemy.isAlive() || (enemy.buff(Corruption.class) != null && enemy.HP == enemy.HT)){
if (!enemy.isAlive() || enemy.buff(Corruption.class) != null){
comboTime = Math.max(comboTime, 10*((Hero)target).pointsInTalent(Talent.CLEAVE)); comboTime = Math.max(comboTime, 10*((Hero)target).pointsInTalent(Talent.CLEAVE));
} }