RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
FlightKilisa.java
1package com.osroyale.game.world.entity.combat.strategy.npc.boss.armadyl;
2
3import com.osroyale.game.world.entity.combat.CombatType;
4import com.osroyale.game.world.entity.combat.attack.FightType;
5import com.osroyale.game.world.entity.combat.hit.CombatHit;
6import com.osroyale.game.world.entity.combat.strategy.npc.NpcMeleeStrategy;
7import com.osroyale.game.world.entity.mob.Mob;
8import com.osroyale.game.world.entity.mob.npc.Npc;
9
29
30public class FlightKilisa extends NpcMeleeStrategy {
31
32 @Override
33 public boolean canOtherAttack(Mob attacker, Npc defender) {
34 if (attacker.isPlayer() && attacker.getStrategy().getCombatType().equals(CombatType.MELEE)) {
35 attacker.getPlayer().message("You can't attack this npc with melee!");
36 return false;
37 }
38 return super.canOtherAttack(attacker, defender);
39 }
40
41 @Override
42 public int getAttackDelay(Npc attacker, Mob defender, FightType fightType) {
43 return attacker.definition.getAttackDelay();
44 }
45
46 @Override
47 public CombatHit[] getHits(Npc attacker, Mob defender) {
48 return new CombatHit[] { nextMeleeHit(attacker, defender, 18) };
49 }
50
51}
abstract< T extends Mob > CombatStrategy<? super T > getStrategy()