1package com.runehive.game.world.entity.combat.attack.listener.npc;
3import com.runehive.game.world.entity.combat.CombatType;
4import com.runehive.game.world.entity.combat.attack.listener.NpcCombatListenerSignature;
5import com.runehive.game.world.entity.combat.attack.listener.SimplifiedListener;
6import com.runehive.game.world.entity.combat.hit.Hit;
7import com.runehive.game.world.entity.mob.Mob;
8import com.runehive.game.world.entity.mob.npc.Npc;
9import com.runehive.game.world.entity.mob.player.Player;
10import com.runehive.util.Utility;
24 if (currentHealth == maximumHealth) {
28 if (monster.id != 3103)
continue;
29 if (monster.equals(defender))
continue;
30 if (monster.getCombat().inCombat() && monster.getCombat().getDefender() !=
null)
continue;
32 monster.speak(
"Brother, I will help thee with this infidel!");
33 monster.getCombat().attack(attacker);
void hit(T attacker, Mob defender, Hit hit)
void block(Mob attacker, Npc defender, Hit hit, CombatType combatType)
A Hit object holds the damage amount and hitsplat data.
final boolean isPlayer()
Check if an entity is a player.
List< Npc > getNpcsInViewport()
The collection of npcs in this viewport.
Represents a non-player character in the in-game world.
This class represents a character controlled by a player.
Handles miscellaneous methods.
static boolean within(Position source, Position target, int distance)