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