Core/GameObject: use a friendly trigger for positive spells.

DB/Creature: correct 2 npc walk/run speed
DB/Spell: Vampiric Embrace proc
DB/GameObjects: Cursed Egg
This commit is contained in:
hondacrx
2017-12-30 17:02:04 -05:00
parent 6f1c9c47e6
commit 0713188d5f
4 changed files with 113 additions and 1 deletions
@@ -1942,7 +1942,7 @@ namespace Game.Entities
}
else
{
trigger.SetFaction(14);
trigger.SetFaction(spellInfo.IsPositive() ? 35 : 14u);
// Set owner guid for target if no owner available - needed by trigger auras
// - trigger gets despawned and there's no caster avalible (see AuraEffect.TriggerSpell())
trigger.CastSpell(target != null ? target : trigger, spellInfo, triggered, null, null, target ? target.GetGUID() : ObjectGuid.Empty);