machine gun combat fixed
This commit is contained in:
1 parent
232c381e96
commit
7ed026f088
1 file changed
+6
@@ -155,6 +155,12 @@ public enum CombatManager {
|
||||
} else {
|
||||
attackRange += attacker.calcHitBox();
|
||||
}
|
||||
|
||||
if(attackRange > 15 && attacker.isMoving()){
|
||||
//cannot shoot bow while moving;
|
||||
return;
|
||||
}
|
||||
|
||||
switch (target.getObjectType()) {
|
||||
case PlayerCharacter:
|
||||
attackRange += ((PlayerCharacter) target).getCharacterHeight() * 0.5f;
|
||||
|
||||
Reference in new issue
Block a user