forked from MagicBane/Server
proper order of operations for assinging hotzone
This commit is contained in:
@@ -33,6 +33,7 @@ public class HotzoneManager {
|
||||
while (newHotzone == null || newHotzone.getObjectUUID() == 931 || newHotzone.getObjectUUID() == 913)
|
||||
newHotzone = (Zone) ZoneManager.macroZones.toArray()[random.nextInt(ZoneManager.macroZones.size())];
|
||||
ZoneManager.setHotZone(newHotzone);
|
||||
ZoneManager.hotZone = newHotzone;
|
||||
int R8UUId = 0;
|
||||
switch(random.nextInt(5)) {
|
||||
case 1:
|
||||
@@ -68,6 +69,7 @@ public class HotzoneManager {
|
||||
created.BehaviourType = Enum.MobBehaviourType.Aggro;
|
||||
hotzoneMob = created;
|
||||
GenerateHotzoneEpicLoot(created);
|
||||
ZoneManager.hotZone = newHotzone;
|
||||
|
||||
for(PlayerCharacter player : SessionManager.getAllActivePlayerCharacters()) {
|
||||
HotzoneChangeMsg hcm = new HotzoneChangeMsg(Enum.GameObjectType.Zone.ordinal(), ZoneManager.hotZone.getObjectUUID());
|
||||
|
||||
Reference in New Issue
Block a user