v1.1.0: fixed darts not updating crossbow before throwPos was calculated

This commit is contained in:
Evan Debenham 2021-11-12 12:04:22 -05:00
parent ba2e282308
commit f56e1cf498

View File

@ -127,6 +127,12 @@ public class Dart extends MissileWeapon {
return super.proc(attacker, defender, damage); return super.proc(attacker, defender, damage);
} }
@Override
public int throwPos(Hero user, int dst) {
updateCrossbow();
return super.throwPos(user, dst);
}
@Override @Override
protected void onThrow(int cell) { protected void onThrow(int cell) {
updateCrossbow(); updateCrossbow();