|  |  | @ -202,7 +202,7 @@ public class ApplyRuneMsg extends ClientNetMsg { | 
			
		
	
		
		
			
				
					
					|  |  |  |         for (CharacterRune cr : runes) { |  |  |  |         for (CharacterRune cr : runes) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             int runeBaseID = cr.getRuneBaseID(); |  |  |  |             int runeBaseID = cr.getRuneBaseID(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             //count number of discipline runes
 |  |  |  |             //count number of discipline runes
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (runeBaseID > 3000 && runeBaseID < 3049) { |  |  |  |             if(isDiscipline(runeBaseID)){ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 discCount++; |  |  |  |                 discCount++; | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             //see if rune is already applied
 |  |  |  |             //see if rune is already applied
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -331,23 +331,29 @@ public class ApplyRuneMsg extends ClientNetMsg { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 break; |  |  |  |                 break; | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         //if discipline, check number applied
 |  |  |  |         //if discipline, check number applied
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         int discAllowed = 0; | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (isDiscipline(runeID)) { |  |  |  |         if (isDiscipline(runeID)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             switch(playerCharacter.getRank()){ |  |  |  |             switch(playerCharacter.getRank()){ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 case 1: |  |  |  |                 case 1: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     discAllowed = 0; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     break; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 case 2: |  |  |  |                 case 2: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 case 3: |  |  |  |                 case 3: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 case 4: |  |  |  |                 case 4: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 case 5: |  |  |  |                 case 5: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 case 6: |  |  |  |                 case 6: | 
			
		
	
		
		
			
				
					
					|  |  |  |                     if(discCount > 3) |  |  |  |                     discAllowed = 3; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         return false; |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     break; |  |  |  |                     break; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 case 7: |  |  |  |                 case 7: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     discAllowed = 4; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     break; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 case 8: |  |  |  |                 case 8: | 
			
		
	
		
		
			
				
					
					|  |  |  |                     if(discCount > 5) |  |  |  |                     discAllowed = 5; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         return false; |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     break; |  |  |  |                     break; | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if(discCount == discAllowed) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 return false; | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         //Everything succeeded. Let's apply the rune
 |  |  |  |         //Everything succeeded. Let's apply the rune
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         //Attempt add rune to database
 |  |  |  |         //Attempt add rune to database
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |