Core/Unit: Small correction to commit 60adf066d9.

This commit is contained in:
Manuel Carrasco
2012-02-16 15:08:27 -03:00
parent 0d5ae5784c
commit 85e0f2de5e
+1 -1
View File
@@ -12164,7 +12164,7 @@ bool Unit::_IsValidAttackTarget(Unit const* target, SpellInfo const* bySpell) co
if (FactionTemplateEntry const* factionTemplate = creature->getFactionTemplateEntry())
if (FactionEntry const* factionEntry = sFactionStore.LookupEntry(factionTemplate->faction))
if (FactionState const* repState = player->GetReputationMgr().GetState(factionEntry))
if (repState->Flags & FACTION_FLAG_PEACE_FORCED)
if (!(repState->Flags & FACTION_FLAG_AT_WAR))
return false;
}
}