Hello --

Currently I added Elysian & Divine effects but it WOULD SEEM it only works if the monster attacks using melee, I want it of course to work with all attack types.
I could see this, as if it used magic or range my prayer would not drain.


Code:
public void dealDamage(int damage) {
	if (playerEquipment[playerShield] == 13742) { //Elysian
			if (Misc.random(9) > 2) {
				damage = (int)(damage * .70);
			}
		}
		if (playerEquipment[playerShield] == 13740 && damage > 0) { //Divine
			int prayerDamage = (int)(damage * .15);
			if (playerLevel[5] >= prayerDamage) {
				playerLevel[5] -= prayerDamage;
				damage = (int)(damage * .70);
			} else {
				double mod = (playerLevel[5]/prayerDamage);
				mod = mod * .30;
				damage = (int)(damage * mod);
				playerLevel[5] = 0;
			}