I'm having trouble with my auto retaliate.. it's not working good, only some npcs it'll attack back, or none at all sometimes, im killing abby demons and it wont even attack them back..anyone know why? i've tried turning it on and off, and relogging..

here's my case

Code:
	
			case 150:
				if (c.autoRet == 0)
					c.autoRet = 1;
				else 
					c.autoRet = 0;
			break;
and here's npchandler.java

Code:
			if (c.playerIndex <= 0 && c.npcIndex <= 0)
				if (c.autoRet == 1)
					c.npcIndex = i;
			if(c.attackTimer <= 3 || c.attackTimer == 0 && c.npcIndex == 0 && c.oldNpcIndex == 0) {
				c.startAnimation(c.getCombat().getBlockEmote());
			}