if (weaponsAllowed == 0) return true;
if (activeChar.getActiveWeaponItem() != null)
{
L2WeaponType playerWeapon;
playerWeapon = activeChar.getActiveWeaponItem().getItemType();
int mask = playerWeapon.mask();
if ((mask & weaponsAllowed) != 0) return true;
// can be on the secondary weapon
if (activeChar.getSecondaryWeaponItem() != null)
{
playerWeapon = activeChar.getSecondaryWeaponItem().getItemType();