summon time takes +1 minute if non-nation players in load range
This commit is contained in:
@@ -1401,6 +1401,14 @@ public enum PowersManager {
|
||||
else
|
||||
duration = 45000; // Belgosh Summons, 45 seconds
|
||||
|
||||
for(AbstractWorldObject absChar : WorldGrid.getObjectsInRangePartial(pc.loc,MBServerStatics.CHARACTER_LOAD_RANGE,MBServerStatics.MASK_PLAYER)){
|
||||
PlayerCharacter player = (PlayerCharacter)absChar;
|
||||
if(player.guild.getNation().equals(pc.guild.getNation()) == false){
|
||||
duration += 60000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Teleport to summoners location
|
||||
FinishSummonsJob fsj = new FinishSummonsJob(source, pc);
|
||||
|
||||
Reference in New Issue
Block a user