Skip to content

Commit

Permalink
Fix monsters faction target logic (#473)
Browse files Browse the repository at this point in the history
The factions were targeting wrong, now everything will work ok
Resolves opentibiabr/otservbr-global#621
  • Loading branch information
dudantas authored Aug 3, 2022
1 parent 1f07781 commit 5f70e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creatures/monsters/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ bool Monster::isTarget(const Creature* creature) const
return false;
}
Faction_t targetFaction = creature->getFaction();
if (getFaction() != FACTION_DEFAULT && master && master->getMonster()) {
if (getFaction() != FACTION_DEFAULT && !isSummon()) {
return isEnemyFaction(targetFaction);
}
return true;
Expand Down

0 comments on commit 5f70e55

Please sign in to comment.