Browse Source

extra summon time doesnt affect safezones

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

14
src/engine/gameManager/PowersManager.java

@ -1400,16 +1400,16 @@ public enum PowersManager {
duration = 15000; // Healer Summons, 15 seconds duration = 15000; // Healer Summons, 15 seconds
else else
duration = 45000; // Belgosh Summons, 45 seconds duration = 45000; // Belgosh Summons, 45 seconds
if(pc.inSafeZone() == false) {
for(AbstractWorldObject absChar : WorldGrid.getObjectsInRangePartial(pc.loc,MBServerStatics.CHARACTER_LOAD_RANGE,MBServerStatics.MASK_PLAYER)){ for (AbstractWorldObject absChar : WorldGrid.getObjectsInRangePartial(pc.loc, MBServerStatics.CHARACTER_LOAD_RANGE, MBServerStatics.MASK_PLAYER)) {
PlayerCharacter player = (PlayerCharacter)absChar; PlayerCharacter player = (PlayerCharacter) absChar;
if(player.guild.getNation().equals(pc.guild.getNation()) == false){ if (player.guild.getNation().equals(pc.guild.getNation()) == false) {
duration += 60000; duration += 60000;
break; break;
}
} }
} }
// Teleport to summoners location // Teleport to summoners location
FinishSummonsJob fsj = new FinishSummonsJob(source, pc); FinishSummonsJob fsj = new FinishSummonsJob(source, pc);
JobContainer jc = JobScheduler.getInstance().scheduleJob(fsj, JobContainer jc = JobScheduler.getInstance().scheduleJob(fsj,

Loading…
Cancel
Save