RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
DragonfireStrategy.java
1package com.osroyale.game.world.entity.combat.strategy.npc.impl;
2
3import com.osroyale.game.Animation;
4import com.osroyale.game.UpdatePriority;
5import com.osroyale.game.world.entity.combat.CombatUtil;
6import com.osroyale.game.world.entity.combat.attack.FightType;
7import com.osroyale.game.world.entity.combat.hit.CombatHit;
8import com.osroyale.game.world.entity.combat.projectile.CombatProjectile;
9import com.osroyale.game.world.entity.combat.strategy.npc.NpcMagicStrategy;
10import com.osroyale.game.world.entity.mob.Mob;
11import com.osroyale.game.world.entity.mob.npc.Npc;
12
33
34public class DragonfireStrategy extends NpcMagicStrategy {
35
36 public DragonfireStrategy(CombatProjectile projectileDefinition) {
37 super(projectileDefinition);
38 }
39
40 @Override
41 public Animation getAttackAnimation(Npc attacker, Mob defender) {
42 return new Animation(81, UpdatePriority.VERY_HIGH);
43 }
44
45 @Override
46 public int getAttackDistance(Npc attacker, FightType fightType) {
47 return 1;
48 }
49
50 @Override
51 public CombatHit[] getHits(Npc attacker, Mob defender) {
52 return new CombatHit[] { CombatUtil.generateDragonfire(attacker, defender, 60, true) };
53 }
54
55}