v1.1.0: fixed an exploit where quitting could cancel enemy attacks
This commit is contained in:
parent
050b37b346
commit
f8c76e52d9
|
@ -538,7 +538,6 @@ public abstract class Mob extends Char {
|
|||
|
||||
if (sprite != null && (sprite.visible || enemy.sprite.visible)) {
|
||||
sprite.attack( enemy.pos );
|
||||
spend( attackDelay() );
|
||||
return false;
|
||||
|
||||
} else {
|
||||
|
@ -551,6 +550,7 @@ public abstract class Mob extends Char {
|
|||
@Override
|
||||
public void onAttackComplete() {
|
||||
attack( enemy );
|
||||
spend( attackDelay() );
|
||||
super.onAttackComplete();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user