Skip to content

Commit

Permalink
Consistent path type
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Apr 23, 2020
1 parent 7d3ea8e commit e372682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/skills/bishop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function Chess_Bishop_Charge:GetTargetZone(p1, p2)
local direction = diagonal.minimize(p2 - p1)
-- add spaces moving back to the mech
local space = p2 - direction
while space ~= p1 and Board:IsValid(space) and not Board:IsBlocked(space, PATH_FLYER) do
while space ~= p1 and Board:IsValid(space) and not Board:IsBlocked(space, PATH_PROJECTILE) do
ret:push_back(space)
space = space - direction
end
Expand Down

0 comments on commit e372682

Please sign in to comment.