Skip to content

Commit

Permalink
Merge pull request #322 from ipochto/attack-ground
Browse files Browse the repository at this point in the history
Fixed issue with hidden [Attack ground] button for catapult, ballista a…
  • Loading branch information
timfel authored Apr 21, 2020
2 parents 3699359 + 99a9b11 commit 0d3fff7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/human/units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ DefineUnitType("unit-ballista", { Name = _("Ballista"),
RightMouseAction = "attack",
CanAttack = true,
CanTargetLand = true, CanTargetSea = true,
GroundAttack = true,
SelectableByRectangle = true,
Sounds = {
"selected", "ballista-selected",
Expand Down Expand Up @@ -186,6 +187,7 @@ DefineUnitType("unit-ballista-super", { Name = _("Ballista"),
RightMouseAction = "attack",
CanAttack = true,
CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
GroundAttack = true,
SelectableByRectangle = false,
Sounds = {
"selected", "ballista-selected",
Expand Down Expand Up @@ -623,6 +625,7 @@ DefineUnitType("unit-battleship", { Name = _("Battleship"),
SideAttack = true,
CanAttack = true,
CanTargetLand = true, CanTargetSea = true,
GroundAttack = true,
SeaUnit = true,
SelectableByRectangle = true,
Sounds = {
Expand Down
3 changes: 3 additions & 0 deletions scripts/orc/units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ DefineUnitType("unit-catapult", { Name = _("Catapult"),
RightMouseAction = "attack",
CanAttack = true,
CanTargetLand = true, CanTargetSea = true,
GroundAttack = true,
SelectableByRectangle = true,
Sounds = {
"selected", "catapult-selected",
Expand Down Expand Up @@ -195,6 +196,7 @@ DefineUnitType("unit-catapult-super", { Name = _("Catapult"),
RightMouseAction = "attack",
CanAttack = true,
CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
GroundAttack = true,
SelectableByRectangle = false,
Sounds = {
"selected", "catapult-selected",
Expand Down Expand Up @@ -602,6 +604,7 @@ DefineUnitType("unit-ogre-juggernaught", { Name = _("Ogre Juggernaught"),
RightMouseAction = "attack",
CanAttack = true,
CanTargetLand = true, CanTargetSea = true,
GroundAttack = true,
SeaUnit = true,
SideAttack = true,
SelectableByRectangle = true,
Expand Down

0 comments on commit 0d3fff7

Please sign in to comment.