mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(gobject): elevator bug + prevent bugs related to faction and flags (#1402)
- Closes #1396
This commit is contained in:
@@ -1890,7 +1890,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
|
||||
else
|
||||
{
|
||||
// xinef: set faction of gameobject, if no faction - assume hostile
|
||||
trigger->setFaction(GetGOInfo()->faction ? GetGOInfo()->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
|
||||
|
||||
Reference in New Issue
Block a user