Core/Creature: Fix problems with neutral innkeepers

This commit is contained in:
Vincent-Michael committed 2014-07-14 14:13:45 +02:00
1 parent 6dba04c0cc
commit f03617cd0f
1 file changed
+2 -2
+2 -2
View File
@@ -11975,8 +11975,8 @@ bool Unit::_IsValidAssistTarget(Unit const* target, SpellInfo const* bySpell) co
}
// can't assist non-friendly targets
if (GetReactionTo(target) <= REP_NEUTRAL
&& target->GetReactionTo(this) <= REP_NEUTRAL
if (GetReactionTo(target) < REP_NEUTRAL
&& target->GetReactionTo(this) < REP_NEUTRAL
&& (!ToCreature() || !(ToCreature()->GetCreatureTemplate()->type_flags & CREATURE_TYPEFLAGS_PARTY_MEMBER)))
return false;