Use rune natural attack range for siege engines
Siege engine range was hardcoded to 300. Read it from the rune natural attack instead (350 for Trebuchet, Mangonel and Ballista), matching the client's RecalcMinWeaponRange. Falls back to 300 if the rune has none. getNaturalAttack now returns the whole entry so speed and range share the lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b525a7a3ab
commit
a708a1f0b2
2 files changed
+42
-6
No files matched your search
@@ -1476,7 +1476,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
||||
Mob mob = (Mob) this;
|
||||
|
||||
if (mob.isSiege()) {
|
||||
return 300;
|
||||
return CombatManager.getSiegeRange(mob);
|
||||
}
|
||||
float range = 8;
|
||||
if ((this).charItemManager.equipped.get(EquipSlotType.RHELD) != null) {
|
||||
|
||||
Reference in new issue
Block a user