Skip to content

Commit

Permalink
Merge pull request #1720 from MrDuck557/patch-1
Browse files Browse the repository at this point in the history
Auto tank refreshes better
  • Loading branch information
Robosturm authored Dec 15, 2023
2 parents bad26c2 + 5f4d4f2 commit a057b0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/scripts/units/ZCOUNIT_AUTO_TANK.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ var Constructor = function()
unit.setHasMoved(false);
unit.addMovementBonus(-999, 1);
unitAttackVariable.writeDataInt32(1);
} else if (attackedOnce === 1)
{
unitAttackVariable.writeDataInt32(0);
unit.addMovementBonus(999, 1);
}
}
};
Expand Down

0 comments on commit a057b0f

Please sign in to comment.