Merge branch 'corp-hastas' into 'master'

Made hastas excluded from Corp's damage reduction

See merge request 2009scape/2009scape!2502
This commit is contained in:
Bishop 2026-07-31 22:28:01 +00:00
commit 50c32a0aa9

View file

@ -68,7 +68,7 @@ public final class CorporealBeastNPC extends NPCBehavior {
if (state.getStyle() == CombatStyle.MELEE || state.getStyle() == CombatStyle.RANGE) {
Weapon w = state.getWeapon();
String name = w != null ? w.getName() : "";
if (w == null || name.toLowerCase().indexOf("spear") == -1) {
if (!name.toLowerCase().contains("spear") && !name.toLowerCase().contains("hasta")) {
if (state.getEstimatedHit() > 0) {
state.setEstimatedHit(state.getEstimatedHit() / 2);
}