Addition of opposing race escape locations.

Author: ShinichiYao
This commit is contained in:
MobiusDevelopment
2019-10-06 23:02:00 +00:00
parent e58a58f9a3
commit 6934d61ed9
14 changed files with 70 additions and 421 deletions

View File

@@ -337,6 +337,11 @@ public class MapRegionManager implements IXmlReader
{
return getRestartRegion(creature, zone.getRespawnPoint((PlayerInstance) creature)).getChaoticSpawnLoc();
}
// Opposing race check.
if (getMapRegion(creature).getBannedRace().containsKey(creature.getRace()))
{
return _regions.get(getMapRegion(creature).getBannedRace().get(creature.getRace())).getChaoticSpawnLoc();
}
return getMapRegion(creature).getChaoticSpawnLoc();
}
catch (Exception e)
@@ -395,6 +400,11 @@ public class MapRegionManager implements IXmlReader
{
return getRestartRegion(creature, zone.getRespawnPoint((PlayerInstance) creature)).getSpawnLoc();
}
// Opposing race check.
if (getMapRegion(creature).getBannedRace().containsKey(creature.getRace()))
{
return _regions.get(getMapRegion(creature).getBannedRace().get(creature.getRace())).getChaoticSpawnLoc();
}
return getMapRegion(creature).getSpawnLoc();
}
catch (Exception e)