This commit is contained in:
Ziver Koc 2007-04-18 21:41:35 +00:00
parent 28ef519579
commit cfb69a3037

View file

@ -246,6 +246,9 @@ public abstract class Unit extends GameEntity{
else{ else{
move(enamyPos.getX(),enamyPos.getY(), false); move(enamyPos.getX(),enamyPos.getY(), false);
} }
if(attack.getLife() <= 0){
attack = null;
}
} }
} }
} }