This commit is contained in:
2023-11-07 21:45:16 -06:00
parent 1b5738f9b3
commit c426a84db0
4 changed files with 63 additions and 38 deletions
+11 -2
View File
@@ -127,6 +127,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
public ArrayList<CharacterRune> runes;
public ArrayList<Vector3fImmutable> navPath = new ArrayList<>();
public AbstractCharacter() {
super();
this.firstName = "";
@@ -836,8 +838,15 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
if (this.isCasting && this.getObjectType().equals(GameObjectType.PlayerCharacter))
return false;
if(this.getObjectType().equals(GameObjectType.Mob) && ((Mob)this).destination.equals(Vector3fImmutable.ZERO))
return false;
if(this.getObjectType().equals(GameObjectType.Mob)){
if(this.destination.equals(Vector3fImmutable.ZERO))
return false;
if(this.loc.distanceSquared(this.destination) < 3){
this.stopMovement(this.loc);
return false;
}
}
return true;
}