Code:
public boolean usingCorrespondingPrayer(FightType style) {
int book = ancientcurses ? 1 : 0;
switch (book) {
case 0:
switch(style) {
case MELEE:
return onPrayers[0][PROTECT_FROM_MELEE];
case RANGE:
return onPrayers[0][PROTECT_FROM_MISSILES];
case MAGIC:
return onPrayers[0][PROTECT_FROM_MAGIC];
}
case 1:
switch (style) {
case MELEE:
return onPrayers[1][DEFLECT_MELEE];
case RANGE:
return onPrayers[1][DEFLECT_MISSILES];
case MAGIC:
return onPrayers[1][DEFLECT_MAGIC];
}
default:
return false;
}
}
Basically book 0 is normal prayers and 1 is curses. you would have to modify the way you calculate styles as you don't have our FightType stuff. (perhaps use an integer for styles, 0 melee, 1 range, 2 mage or something like that)