mark Arcane Missiles aura as negative. Was downranking the spell when targetting low level mobs due to effect 1 flagged as possitive.

clear auras of channeled spells if channeling is cancelled due to invalid targets (dead or w/e)
This commit is contained in:
hondacrx
2017-10-04 18:16:56 -04:00
parent cc5263099c
commit 2cac04e439
2 changed files with 14 additions and 2 deletions
+9 -2
View File
@@ -3185,8 +3185,15 @@ namespace Game.Spells
if (!UpdateChanneledTargetList())
{
Log.outDebug(LogFilter.Spells, "Channeled spell {0} is removed due to lack of targets", m_spellInfo.Id);
SendChannelUpdate(0);
finish();
m_timer = 0;
// Also remove applied auras
foreach (TargetInfo target in m_UniqueTargetInfo)
{
Unit unit = m_caster.GetGUID() == target.targetGUID ? m_caster : Global.ObjAccessor.GetUnit(m_caster, target.targetGUID);
if (unit)
unit.RemoveOwnedAura(m_spellInfo.Id, m_originalCasterGUID, 0, AuraRemoveMode.Cancel);
}
}
if (m_timer > 0)
+5
View File
@@ -2592,6 +2592,11 @@ namespace Game.Spells
return true;
}
break;
case SpellFamilyNames.Mage:
// Arcane Missiles
if (SpellFamilyFlags[0] == 0x00000800)
return false;
break;
case SpellFamilyNames.Priest:
switch (Id)
{