Addition of opposing race escape locations.
Author: ShinichiYao
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user