View Single Post
  #2  
Old 04-10-2004, 08:33 PM
nattini
Fire Beetle
 
Join Date: Mar 2004
Posts: 15
Default

Code:
bool Mob::CanThisClassDuelWield(void) //Dual wield not Duel, busy someone else fix it 
{ 
   // All npcs over level 13 can dual wield 
   if (this->IsNPC() && (this->GetLevel() >= 13)) 
      return true; 
    
   // nattini - added breaks- preventing war/rog classes falling through to the bard level check 
   // Kaiyodo - Check the classes that can DW, and make sure we're not using a 2 hander 
   switch(this->GetClass()) // Lets make sure they are the right level! -image 
   { 
   case WARRIOR: 
   case ROGUE: 
      { 
      if(this->GetLevel() < 13) 
         return false; 
      break; 
      } 
   case BARD:
   case BEASTLORD: 
   case RANGER: 
      { 
      if(this->GetLevel() < 17) 
         return false; 
      break; 
      } 
   case MONK: 
      { 
      } 
   }
sorry, that case statment was haunting me in my sleep. i should be better now.

-nattini
Reply With Quote