leftover issues

This commit is contained in:
Player Name 2026-07-31 22:44:02 +02:00
parent 3d626fac46
commit 572ec05137
2 changed files with 1 additions and 7 deletions

View file

@ -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) {

View file

@ -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);