forked from MagicBane/Server
respawn que work
This commit is contained in:
@@ -373,9 +373,11 @@ public class MobileFSM {
|
|||||||
CheckForRespawn(mob);
|
CheckForRespawn(mob);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mob.playerAgroMap.isEmpty() && mob.isPlayerGuard == false && mob.BehaviourType.ordinal() != Enum.MobBehaviourType.Pet1.ordinal())
|
if (mob.playerAgroMap.isEmpty() && mob.isPlayerGuard == false && mob.BehaviourType.ordinal() != Enum.MobBehaviourType.Pet1.ordinal()) {
|
||||||
//no players loaded, no need to proceed
|
//no players loaded, no need to proceed
|
||||||
|
mob.setCombatTarget(null);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
if (mob.isCombat() && mob.getCombatTarget() == null) {
|
if (mob.isCombat() && mob.getCombatTarget() == null) {
|
||||||
mob.setCombat(false);
|
mob.setCombat(false);
|
||||||
UpdateStateMsg rwss = new UpdateStateMsg();
|
UpdateStateMsg rwss = new UpdateStateMsg();
|
||||||
@@ -402,6 +404,9 @@ public class MobileFSM {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//if(mob.getTimestamps().containsKey("LOCATIONSYNC") == false){
|
||||||
|
// mob.getTimestamps().put("LOCATIONSYNC",System.currentTimeMillis());
|
||||||
|
//}
|
||||||
switch (mob.BehaviourType) {
|
switch (mob.BehaviourType) {
|
||||||
case GuardCaptain:
|
case GuardCaptain:
|
||||||
GuardCaptainLogic(mob);
|
GuardCaptainLogic(mob);
|
||||||
|
|||||||
@@ -1383,7 +1383,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
public void respawn() {
|
public void respawn() {
|
||||||
//Commenting out Mob ID rotation.
|
//Commenting out Mob ID rotation.
|
||||||
this.despawned = false;
|
this.despawned = false;
|
||||||
this.playerAgroMap.clear();
|
//this.playerAgroMap.clear();
|
||||||
this.setCombatTarget(null);
|
this.setCombatTarget(null);
|
||||||
this.setHealth(this.healthMax);
|
this.setHealth(this.healthMax);
|
||||||
this.stamina.set(this.staminaMax);
|
this.stamina.set(this.staminaMax);
|
||||||
|
|||||||
Reference in New Issue
Block a user