mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)
This commit is contained in:
@@ -2502,7 +2502,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex)
|
||||
if (properties->Category == SUMMON_CATEGORY_ALLY)
|
||||
{
|
||||
summon->SetOwnerGUID(m_originalCaster->GetGUID());
|
||||
summon->setFaction(m_originalCaster->getFaction());
|
||||
summon->SetFaction(m_originalCaster->GetFaction());
|
||||
}
|
||||
|
||||
ExecuteLogEffectSummonObject(effIndex, summon);
|
||||
@@ -2552,9 +2552,9 @@ void Spell::EffectSummonType(SpellEffIndex effIndex)
|
||||
// xinef: i think this is wrong, found only 2 vehicles with faction override and one of them should inherit caster faction...
|
||||
//uint32 faction = properties->Faction;
|
||||
//if (!faction)
|
||||
uint32 faction = m_originalCaster->getFaction();
|
||||
uint32 faction = m_originalCaster->GetFaction();
|
||||
|
||||
summon->setFaction(faction);
|
||||
summon->SetFaction(faction);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -4387,7 +4387,7 @@ void Spell::EffectDuel(SpellEffIndex effIndex)
|
||||
return;
|
||||
}
|
||||
|
||||
pGameObj->SetUInt32Value(GAMEOBJECT_FACTION, m_caster->getFaction());
|
||||
pGameObj->SetUInt32Value(GAMEOBJECT_FACTION, m_caster->GetFaction());
|
||||
pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel() + 1);
|
||||
int32 duration = m_spellInfo->GetDuration();
|
||||
pGameObj->SetRespawnTime(duration > 0 ? duration / IN_MILLISECONDS : 0);
|
||||
@@ -6231,7 +6231,7 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const*
|
||||
}
|
||||
|
||||
if (properties && properties->Category == SUMMON_CATEGORY_ALLY)
|
||||
summon->setFaction(caster->getFaction());
|
||||
summon->SetFaction(caster->GetFaction());
|
||||
|
||||
ExecuteLogEffectSummonObject(i, summon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user