Browse Source

summon time takes +1 minute if non-nation players in load range

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
1f95abf0b2
  1. 8
      src/engine/gameManager/PowersManager.java

8
src/engine/gameManager/PowersManager.java

@ -1401,6 +1401,14 @@ public enum PowersManager {
else else
duration = 45000; // Belgosh Summons, 45 seconds 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 // Teleport to summoners location
FinishSummonsJob fsj = new FinishSummonsJob(source, pc); FinishSummonsJob fsj = new FinishSummonsJob(source, pc);

Loading…
Cancel
Save