1package com.osroyale.game.world.entity.combat.attack.listener.npc;
3import com.osroyale.game.world.entity.combat.attack.listener.NpcCombatListenerSignature;
4import com.osroyale.game.world.entity.combat.attack.listener.SimplifiedListener;
5import com.osroyale.game.world.entity.combat.hit.Hit;
6import com.osroyale.game.world.entity.mob.Mob;
7import com.osroyale.game.world.entity.mob.npc.Npc;
8import com.osroyale.game.world.entity.mob.player.Player;
9import com.osroyale.util.Utility;
18 public void hit(
Npc attacker,
Mob defender,
Hit hit) {
24 Player playerDefender = defender.getPlayer();
33 if (attacker.
getCombat().isAttacking(player))
35 if (!
Utility.within(attacker, player, 7))
37 players[index] = player;
List< Player > getPlayersInViewport()
Combat< Npc > getCombat()
static< T > T randomElement(Collection< T > collection)