Skip to content

Commit

Permalink
Minor fix to monster path finding
Browse files Browse the repository at this point in the history
  • Loading branch information
diegorodriguesvieira committed Sep 19, 2016
1 parent 06cf0f3 commit e647da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ ReturnValue Tile::__queryAdd(int32_t index, const Thing* thing, uint32_t count,
//3) Monster is already afflicated by this type of condition
if(hasBitSet(FLAG_IGNOREFIELDDAMAGE, flags)){
if(!monster->hasCondition(Combat::DamageToConditionType(combatType), false)){
if(!monster->canPushItems() || !monster->hadRecentBattle()){
if(!monster->canPushItems()){
return RET_NOTPOSSIBLE;
}
}
Expand Down

0 comments on commit e647da4

Please sign in to comment.