mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
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:
commit
50c32a0aa9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue