1package com.osroyale.content.activity.impl.fightcaves;
3import com.osroyale.game.world.entity.combat.CombatType;
4import com.osroyale.game.world.entity.combat.hit.Hit;
5import com.osroyale.game.world.entity.mob.Mob;
6import com.osroyale.game.world.entity.mob.npc.Npc;
7import com.osroyale.content.activity.ActivityListener;
8import com.osroyale.util.Utility;
24 if (!defender.
isNpc())
26 if (defender.id != 3127)
30 for (
Npc npc : activity.npcs) {
31 if (npc.id == 3128 && (npc.
getCombat().inCombatWith(attacker) ||
Utility.withinDistance(defender, npc, 5))) {
38 public void onDeath(Mob attacker, Mob defender, Hit hit) {
39 activity.handleDeath(defender);
ActivityListener(T activity)
FightCavesListener(FightCaves minigame)
Combat< Npc > getCombat()
static double getPercentageAmount(int progress, int total)