Skip to content

Commit

Permalink
Fix Wall Spells on objects (#7364)
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 authored Sep 4, 2024
1 parent 520bf5d commit c138d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/missiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2438,7 +2438,7 @@ void AddWallControl(Missile &missile, AddMissileParameter &parameter)
{
std::optional<Point> spreadPosition = FindClosestValidPosition(
[start = missile.position.start](Point target) {
return start != target && IsTileNotSolid(target) && !IsObjectAtPosition(target) && LineClearMissile(start, target);
return start != target && !TileHasAny(target, TileProperties::BlockMissile) && LineClearMissile(start, target);
},
parameter.dst, 0, 5);

Expand Down

0 comments on commit c138d29

Please sign in to comment.