mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Removed redundancy
This commit is contained in:
parent
6375cfd883
commit
8889364137
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().contains("spear") && !name.toLowerCase().contains("hasta"))) {
|
||||
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