forked from 2009Scape/Server
Dark bow and crystal bow now have 10 square range (authenticity fix)
This commit is contained in:
parent
e754803f5a
commit
2177b3c47b
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue