shape
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user