forked from MagicBane/Server
machine gun combat fixed
This commit is contained in:
@@ -155,6 +155,12 @@ public enum CombatManager {
|
|||||||
} else {
|
} else {
|
||||||
attackRange += attacker.calcHitBox();
|
attackRange += attacker.calcHitBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(attackRange > 15 && attacker.isMoving()){
|
||||||
|
//cannot shoot bow while moving;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (target.getObjectType()) {
|
switch (target.getObjectType()) {
|
||||||
case PlayerCharacter:
|
case PlayerCharacter:
|
||||||
attackRange += ((PlayerCharacter) target).getCharacterHeight() * 0.5f;
|
attackRange += ((PlayerCharacter) target).getCharacterHeight() * 0.5f;
|
||||||
|
|||||||
Reference in New Issue
Block a user