From 1f95abf0b237934c7a2e702b609fbe35ed506489 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 5 Apr 2024 21:43:58 -0500 Subject: [PATCH] summon time takes +1 minute if non-nation players in load range --- src/engine/gameManager/PowersManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 986dc2a0..44f3fa05 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -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);