|
|
@ -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 == null || !promo.isAllowedRune(race.getToken())) { |
|
|
|
if(race.getRaceRuneID() == 1999 && (promoID == 2512 || promoID == 2511)) { |
|
|
|
// TODO send client promotion error
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
if (race == null || !promo.isAllowedRune(race.getToken())) { |
|
|
|
|
|
|
|
// TODO send client promotion error
|
|
|
|
|
|
|
|
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
|
|
|
|