This commit is contained in:
parent
28ef519579
commit
cfb69a3037
1 changed files with 3 additions and 0 deletions
|
|
@ -246,6 +246,9 @@ public abstract class Unit extends GameEntity{
|
|||
else{
|
||||
move(enamyPos.getX(),enamyPos.getY(), false);
|
||||
}
|
||||
if(attack.getLife() <= 0){
|
||||
attack = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue