mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
Fix possible problem with 'allow two side interaction' and loot.
This commit is contained in:
parent
fd8db4143c
commit
81fdf3f77c
1 changed files with 6 additions and 1 deletions
|
|
@ -8225,7 +8225,12 @@ bool PlayerCondition::Meets(Player const* player, Map const* map, WorldObject co
|
||||||
return faction && player->GetReputationMgr().GetRank(faction) >= ReputationRank(m_value2);
|
return faction && player->GetReputationMgr().GetRank(faction) >= ReputationRank(m_value2);
|
||||||
}
|
}
|
||||||
case CONDITION_TEAM:
|
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:
|
case CONDITION_SKILL:
|
||||||
return player->HasSkill(m_value1) && player->GetBaseSkillValue(m_value1) >= m_value2;
|
return player->HasSkill(m_value1) && player->GetBaseSkillValue(m_value1) >= m_value2;
|
||||||
case CONDITION_QUESTREWARDED:
|
case CONDITION_QUESTREWARDED:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue