Browse Source

rogue/mage druids and saetor huntress/fury

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
5cdab459bc
  1. 5
      src/engine/net/client/msg/VendorDialogMsg.java

5
src/engine/net/client/msg/VendorDialogMsg.java

@ -548,11 +548,14 @@ public class VendorDialogMsg extends ClientNetMsg {
// verify race valid for profession // verify race valid for profession
Race race = pc.getRace(); Race race = pc.getRace();
if(race.getRaceRuneID() == 1999 && (promoID == 2512 || promoID == 2511)) {
}else {
if (race == null || !promo.isAllowedRune(race.getToken())) { if (race == null || !promo.isAllowedRune(race.getToken())) {
// TODO send client promotion error // TODO send client promotion error
return; return;
} }
}
// verify baseclass valid for profession // verify baseclass valid for profession
BaseClass bc = pc.getBaseClass(); BaseClass bc = pc.getBaseClass();
if(promo.getName().equals("Druid") && (bc.getName().equals("Rogue") || bc.getName().equals("Mage"))) { //allow rogue and mage druids if(promo.getName().equals("Druid") && (bc.getName().equals("Rogue") || bc.getName().equals("Mage"))) { //allow rogue and mage druids

Loading…
Cancel
Save