Fix possible problem with 'allow two side interaction' and loot.

This commit is contained in:
Oniryck 2016-09-09 20:51:59 +01:00 committed by Antz
parent fd8db4143c
commit 81fdf3f77c

View file

@ -8225,7 +8225,12 @@ bool PlayerCondition::Meets(Player const* player, Map const* map, WorldObject co
return faction && player->GetReputationMgr().GetRank(faction) >= ReputationRank(m_value2);
}
case CONDITION_TEAM:
return uint32(player->GetTeam()) == m_value1;
{
if (conditionSourceType == CONDITION_FROM_REFERING_LOOT && sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_AUCTION))
{ return true; }
else
{ return uint32(player->GetTeam()) == m_value1; }
}
case CONDITION_SKILL:
return player->HasSkill(m_value1) && player->GetBaseSkillValue(m_value1) >= m_value2;
case CONDITION_QUESTREWARDED: