v0.9.2b: fixed hero being able to attack removed chars
This commit is contained in:
@@ -531,7 +531,7 @@ public class Hero extends Char {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean canAttack(Char enemy){
|
public boolean canAttack(Char enemy){
|
||||||
if (enemy == null || pos == enemy.pos) {
|
if (enemy == null || pos == enemy.pos || !Actor.chars().contains(enemy)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user