mirror of
https://github.com/moparisthebest/MoparClassic
synced 2025-02-28 08:21:52 -05:00
Update GameServer/src/org/moparscape/msc/gs/event/WalkMobToMobEvent.java
If player is close to gate npc stay aggressive like rsc and previous change to npc chasing path was to dangerous in some situations (looked like npc got ac lol)
This commit is contained in:
parent
e9d3ec9421
commit
467c8ec594
@ -67,9 +67,12 @@ public abstract class WalkMobToMobEvent extends DelayedEvent {
|
||||
|
||||
if (owner.withinRange(affectedMob, radius))
|
||||
arrived();
|
||||
else if (owner.hasMoved() || affectedMob.hasMoved()) {
|
||||
else if (affectedMob.hasMoved()){
|
||||
owner.resetPath();
|
||||
owner.setPath(new Path(owner.getX(), owner.getY(), affectedMob.getX(), affectedMob.getY()));
|
||||
return; // Target is moving.. correcting path
|
||||
}
|
||||
else if (owner.hasMoved()) {
|
||||
return; // We're still moving
|
||||
}
|
||||
else {
|
||||
@ -87,6 +90,9 @@ public abstract class WalkMobToMobEvent extends DelayedEvent {
|
||||
failed();
|
||||
return;
|
||||
}
|
||||
else if (owner.nextTo(affectedMob) && owner.finishedPath()) {
|
||||
return; // if stuck behind gate, keep chasing in case it opens
|
||||
}
|
||||
}
|
||||
|
||||
if (owner.isBusy())
|
||||
|
Loading…
x
Reference in New Issue
Block a user