Skip to content

Commit

Permalink
Fix monsters casting spells through walls bug
Browse files Browse the repository at this point in the history
  • Loading branch information
peonso authored and Pietia10 committed Mar 26, 2023
1 parent 6eefe44 commit 108c751
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,10 @@ AreaCombat::AreaCombat(const AreaCombat& rhs)
bool AreaCombat::getList(const Position& centerPos, const Position& targetPos, std::list<Tile*>& list) const
{
Tile* tile = g_game.getTile(targetPos.x, targetPos.y, targetPos.z);

if (tile->hasProperty(BLOCKSOLID)) {
return false;
}

const MatrixArea* area = getArea(centerPos, targetPos);
if(!area){
Expand Down

0 comments on commit 108c751

Please sign in to comment.