v0.8.1: fixed cleave not triggering if enemy was corrupted
This commit is contained in:
parent
671f4fba69
commit
d76e81d27e
|
@ -264,6 +264,7 @@ public class Combo extends Buff implements ActionIndicator.Action {
|
|||
}
|
||||
|
||||
dmg = target.attackProc(enemy, dmg);
|
||||
boolean wasAlly = enemy.alignment == target.alignment;
|
||||
enemy.damage( dmg, this );
|
||||
|
||||
//special effects
|
||||
|
@ -323,8 +324,9 @@ public class Combo extends Buff implements ActionIndicator.Action {
|
|||
//Post-attack behaviour
|
||||
switch(type){
|
||||
case CLEAVE:
|
||||
if (!enemy.isAlive()) {
|
||||
//combo isn't reset, but rather increments with a cleave kill, and grants more time.
|
||||
//this includes corrupting kills (which is why we check alignment
|
||||
if (!enemy.isAlive() || (!wasAlly && enemy.alignment == target.alignment)) {
|
||||
hit( enemy );
|
||||
comboTime = 12f;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user