Browse Source

healer archmage fix and saetor ranger fix

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
3312ea292f
  1. 6
      src/engine/net/client/msg/ApplyRuneMsg.java
  2. 7
      src/engine/objects/Bane.java

6
src/engine/net/client/msg/ApplyRuneMsg.java

@ -93,6 +93,9 @@ public class ApplyRuneMsg extends ClientNetMsg { @@ -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 { @@ -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;
}

7
src/engine/objects/Bane.java

@ -32,6 +32,8 @@ import org.pmw.tinylog.Logger; @@ -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 { @@ -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;

Loading…
Cancel
Save