Dark bow and crystal bow now have 10 square range (authenticity fix)
This commit is contained in:
@@ -58,6 +58,13 @@ open class RangeSwingHandler
|
||||
if (entity.properties.attackStyle.style == WeaponInterface.STYLE_LONG_RANGE) {
|
||||
distance += 2
|
||||
}
|
||||
if (entity is Player) {
|
||||
val rw = RangeWeapon.get(entity.getEquipment().getNew(EquipmentContainer.SLOT_WEAPON).getId());
|
||||
if(rw.weaponType == WeaponType.DOUBLE_SHOT || rw.weaponType == WeaponType.DEGRADING) {
|
||||
// Dark bow and crystal bow have a 10-square range, independent of whether longrange stance is used
|
||||
distance = 10
|
||||
}
|
||||
}
|
||||
var goodRange = victim.centerLocation.withinDistance(entity.centerLocation, getCombatDistance(entity, victim, distance))
|
||||
var type = InteractionType.STILL_INTERACT
|
||||
if (victim.walkingQueue.isMoving && !goodRange) {
|
||||
|
||||
Reference in New Issue
Block a user