|
|
@ -4888,12 +4888,10 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
if (this.isAlive() == false || this.getBonuses().getBool(ModType.Stunned, SourceType.None) || this.getBonuses().getBool(ModType.CannotMove, SourceType.None)) { |
|
|
|
if (this.isAlive() == false || this.getBonuses().getBool(ModType.Stunned, SourceType.None) || this.getBonuses().getBool(ModType.CannotMove, SourceType.None)) { |
|
|
|
//Target is stunned or rooted. Don't move
|
|
|
|
//Target is stunned or rooted. Don't move
|
|
|
|
this.stopMovement(newLoc); |
|
|
|
this.stopMovement(newLoc); |
|
|
|
this.region = AbstractWorldObject.GetRegionByWorldObject(this); |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (newLoc.equals(this.getEndLoc())) { |
|
|
|
if (newLoc.equals(this.getEndLoc())) { |
|
|
|
this.stopMovement(newLoc); |
|
|
|
this.stopMovement(newLoc); |
|
|
|
this.region = AbstractWorldObject.GetRegionByWorldObject(this); |
|
|
|
|
|
|
|
if (this.getDebug(1)) |
|
|
|
if (this.getDebug(1)) |
|
|
|
ChatManager.chatSystemInfo(this, |
|
|
|
ChatManager.chatSystemInfo(this, |
|
|
|
"Arrived at End location. " + this.getEndLoc()); |
|
|
|
"Arrived at End location. " + this.getEndLoc()); |
|
|
@ -4902,7 +4900,6 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setLoc(newLoc); |
|
|
|
setLoc(newLoc); |
|
|
|
this.region = AbstractWorldObject.GetRegionByWorldObject(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.getDebug(1)) |
|
|
|
if (this.getDebug(1)) |
|
|
|
ChatManager.chatSystemInfo(this, |
|
|
|
ChatManager.chatSystemInfo(this, |
|
|
|