public double mageAtkTest() {
        double attackBonus = c.playerBonus[3] == 0 ? 1 : c.playerBonus[3];
		if(attackBonus < 1) 
			attackBonus = 1;
		double attackCalc =  attackBonus * c.playerLevel[6]; // +1 as its exclusive
		if (c.fullVoidMage())
            attackCalc += 1.10;
        if (c.prayerActive[4])
			attackCalc *= 1.05;
		else if (c.prayerActive[12])
			attackCalc *= 1.10;
		else if (c.prayerActive[20])
			attackCalc *= 1.15;
        return attackCalc;


    }