|
|
@ -154,9 +154,11 @@ public enum CombatManager { |
|
|
|
if (AbstractCharacter.IsAbstractCharacter(target)) { |
|
|
|
if (AbstractCharacter.IsAbstractCharacter(target)) { |
|
|
|
attackRange += ((AbstractCharacter) target).calcHitBox(); |
|
|
|
attackRange += ((AbstractCharacter) target).calcHitBox(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
//need to handle building attacks range calculations here
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
attackRange += 4; // need to add 4 to the attack range to offset where the client stops short of legitimate range
|
|
|
|
|
|
|
|
|
|
|
|
if (attackRange > 15 && attacker.isMoving()) { |
|
|
|
if (attackRange > 15 && attacker.isMoving()) { |
|
|
|
//cannot shoot bow while moving;
|
|
|
|
//cannot shoot bow while moving;
|
|
|
|
return; |
|
|
|
return; |
|
|
|