Core/Misc: fixed more crashes related to the caster dependency removal
This commit is contained in:
1 parent
10823f8fcc
commit
6fa4c22daf
2 files changed
+2
-2
No files matched your search
@@ -2864,7 +2864,7 @@ ReputationRank WorldObject::GetReactionTo(WorldObject const* target) const
|
||||
return REP_HOSTILE;
|
||||
if (ReputationRank const* repRank = targetPlayerOwner->GetReputationMgr().GetForcedRankIfAny(factionTemplateEntry))
|
||||
return *repRank;
|
||||
if (!target->HasFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_IGNORE_REPUTATION))
|
||||
if (target->IsUnit() && !target->HasFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_IGNORE_REPUTATION))
|
||||
{
|
||||
if (FactionEntry const* factionEntry = sFactionStore.LookupEntry(factionTemplateEntry->Faction))
|
||||
{
|
||||
|
||||
@@ -751,7 +751,7 @@ bool Unit::HasBreakableByDamageCrowdControlAura(Unit* excludeCasterChannel) cons
|
||||
// Sparring Checks
|
||||
if (Creature* target = victim->ToCreature())
|
||||
{
|
||||
if (attacker->IsCreature() && !attacker->IsCharmedOwnedByPlayerOrPlayer())
|
||||
if (attacker && attacker->IsCreature() && !attacker->IsCharmedOwnedByPlayerOrPlayer())
|
||||
{
|
||||
if (target->GetNoNpcDamageBelowPctHealthValue() != 0.0f)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user