From 8f2a2f0ba68d1853c1b54bd4bfaafe69ec17ee85 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 8 Sep 2024 19:17:16 -0500 Subject: [PATCH] Rogue Druids --- src/engine/net/client/msg/VendorDialogMsg.java | 6 +++++- src/engine/objects/PromotionClass.java | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/msg/VendorDialogMsg.java b/src/engine/net/client/msg/VendorDialogMsg.java index 76a9e588..801d3cc0 100644 --- a/src/engine/net/client/msg/VendorDialogMsg.java +++ b/src/engine/net/client/msg/VendorDialogMsg.java @@ -587,10 +587,14 @@ public class VendorDialogMsg extends ClientNetMsg { } // verify baseclass valid for profession BaseClass bc = pc.getBaseClass(); - if (bc == null || !promo.isAllowedRune(bc.getToken())) { + if (bc == null) { // TODO send client promotion error return; } + if(!promo.isAllowedRune(bc.getToken())){ + if(!bc.getName().equals("Rogue") && !promo.getName().equals("Druid")) + return; + } if(race.getRaceRuneID() != 1999) { // verify gender diff --git a/src/engine/objects/PromotionClass.java b/src/engine/objects/PromotionClass.java index ea0f28e9..c7470f06 100644 --- a/src/engine/objects/PromotionClass.java +++ b/src/engine/objects/PromotionClass.java @@ -150,8 +150,6 @@ public class PromotionClass extends AbstractGameObject { return true; } } - if(this.getName().equals("Druid") && token == 2502) - return true; return false; }