refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)
This commit is contained in:
parent
3396a9da87
commit
f106de8788
129 changed files with 418 additions and 444 deletions
|
|
@ -2023,7 +2023,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
|
|||
if (Unit* owner = GetOwner())
|
||||
{
|
||||
trigger->SetLevel(owner->getLevel(), false);
|
||||
trigger->setFaction(owner->getFaction());
|
||||
trigger->SetFaction(owner->GetFaction());
|
||||
// needed for GO casts for proper target validation checks
|
||||
trigger->SetOwnerGUID(owner->GetGUID());
|
||||
// xinef: fixes some duel bugs with traps]
|
||||
|
|
@ -2042,7 +2042,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
|
|||
else
|
||||
{
|
||||
// xinef: set faction of gameobject, if no faction - assume hostile
|
||||
trigger->setFaction(GetTemplateAddon() && GetTemplateAddon()->faction ? GetTemplateAddon()->faction : 14);
|
||||
trigger->SetFaction(GetTemplateAddon() && GetTemplateAddon()->faction ? GetTemplateAddon()->faction : 14);
|
||||
// Set owner guid for target if no owner availble - needed by trigger auras
|
||||
// - trigger gets despawned and there's no caster avalible (see AuraEffect::TriggerSpell())
|
||||
// xinef: set proper orientation, fixes cast against stealthed targets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue