Browse Source

bane commander NPC

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
5a9901d775
  1. 3
      src/engine/mobileAI/MobAI.java
  2. 4
      src/engine/objects/Bane.java

3
src/engine/mobileAI/MobAI.java

@ -166,6 +166,9 @@ public class MobAI { @@ -166,6 +166,9 @@ public class MobAI {
try {
if(mob == null || target == null)
return;
if (target.getRank() == -1 || !target.isVulnerable() || BuildingManager.getBuildingFromCache(target.getObjectUUID()) == null) {
mob.setCombatTarget(null);
return;

4
src/engine/objects/Bane.java

@ -266,6 +266,10 @@ public final class Bane { @@ -266,6 +266,10 @@ public final class Bane {
BaneRecord baneRecord = BaneRecord.borrow(bane, Enum.RecordEventType.PENDING);
DataWarehouse.pushToWarehouse(baneRecord);
//add bane commander NPC
int contractID = 1502042;
NPC.createNPC("Bane Commander",contractID,Vector3fImmutable.getRandomPointOnCircle(stone.loc,15),targetCity.getGuild(),cityZone,(short)70,stone);
return true;
}

Loading…
Cancel
Save