From 3312ea292f146c6701d7dfeab980516874f52fbc Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 2 May 2024 20:50:41 -0500 Subject: [PATCH] healer archmage fix and saetor ranger fix --- src/engine/net/client/msg/ApplyRuneMsg.java | 6 ++++++ src/engine/objects/Bane.java | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/engine/net/client/msg/ApplyRuneMsg.java b/src/engine/net/client/msg/ApplyRuneMsg.java index 7592f9ac..accf64a7 100644 --- a/src/engine/net/client/msg/ApplyRuneMsg.java +++ b/src/engine/net/client/msg/ApplyRuneMsg.java @@ -93,6 +93,9 @@ public class ApplyRuneMsg extends ClientNetMsg { if(runeID == 3040) valid = true; + if(runeID == 2514 && raceID == 1999) + valid = true; + if(runeID == 3036 && raceID == 1999) valid = true; @@ -125,6 +128,9 @@ public class ApplyRuneMsg extends ClientNetMsg { if(runeID == 3033 && raceID == 1999) valid = true; + if(runeID == 3035 && baseClassID == 2501) + valid = true; + if (!valid) { return false; } diff --git a/src/engine/objects/Bane.java b/src/engine/objects/Bane.java index 32ac9690..af514271 100644 --- a/src/engine/objects/Bane.java +++ b/src/engine/objects/Bane.java @@ -32,6 +32,8 @@ import org.pmw.tinylog.Logger; import java.sql.ResultSet; import java.sql.SQLException; +import java.time.DayOfWeek; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Date; import java.util.concurrent.ConcurrentHashMap; @@ -111,6 +113,11 @@ public final class Bane { public static boolean summonBanestone(PlayerCharacter player, ClientConnection origin, int rank) { + if(LocalDateTime.now().getDayOfWeek().equals(DayOfWeek.WEDNESDAY) == false && LocalDateTime.now().getDayOfWeek().equals(DayOfWeek.THURSDAY) == false){ + ChatManager.chatSystemError(player, "You can only place banes on Wednesdays and Thursdays."); + return false; + } + Guild baningGuild; Zone cityZone; City targetCity;