mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-28 05:45:10 -06:00
leftover issues
This commit is contained in:
parent
3d626fac46
commit
572ec05137
2 changed files with 1 additions and 7 deletions
|
|
@ -74,7 +74,7 @@ public final class SpearWallSpecialHandler extends MeleeSwingHandler implements
|
|||
if (!multi) {
|
||||
return super.swing(entity, victim, state);
|
||||
}
|
||||
List<Entity> list = findMultihitTargets(entity.getLocation(), entity, CombatStyle.MELEE);
|
||||
List<Entity> list = findMultihitTargets(victim, entity, CombatStyle.MELEE);
|
||||
BattleState[] targets = new BattleState[list.size()];
|
||||
int count = 0;
|
||||
for (Entity e : list) {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ import core.game.node.entity.combat.CombatStyle;
|
|||
import core.game.node.entity.combat.MeleeSwingHandler;
|
||||
import core.game.node.entity.impl.Animator.Priority;
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.world.map.Direction;
|
||||
import core.game.world.map.Location;
|
||||
import core.game.world.update.flag.context.Animation;
|
||||
import core.game.world.update.flag.context.Graphics;
|
||||
import core.plugin.Plugin;
|
||||
|
|
@ -90,10 +88,6 @@ public final class SweepSpecialHandler extends MeleeSwingHandler implements Plug
|
|||
if (!entity.getProperties().isMultiZone() || !victim.getProperties().isMultiZone()) {
|
||||
return new BattleState[]{state};
|
||||
}
|
||||
Location vl = victim.getLocation();
|
||||
int x = vl.getX();
|
||||
int y = vl.getY();
|
||||
Direction dir = Direction.getDirection(x - entity.getLocation().getX(), y - entity.getLocation().getY());
|
||||
List<BattleState> l = new ArrayList<>(20);
|
||||
l.add(new BattleState(entity, victim));
|
||||
List<Entity> list = findMultihitTargetsForDragonHalberd(victim, entity);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue