mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[10697] Less strict check for update at war state for factions
Clarify in comments of recent added spell dummy effect Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
9508001213
commit
b4a48f976e
3 changed files with 14 additions and 19 deletions
|
|
@ -375,8 +375,8 @@ void ReputationMgr::SetAtWar( RepListID repListID, bool on )
|
|||
|
||||
void ReputationMgr::SetAtWar(FactionState* faction, bool atWar)
|
||||
{
|
||||
// not allow declare war to own faction
|
||||
if(atWar && (faction->Flags & FACTION_FLAG_PEACE_FORCED) )
|
||||
// not allow declare war to faction unless already hated or less
|
||||
if (atWar && (faction->Flags & FACTION_FLAG_PEACE_FORCED) && ReputationToRank(faction->Standing) > REP_HATED)
|
||||
return;
|
||||
|
||||
// already set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue