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:
@@ -3185,8 +3185,15 @@ namespace Game.Spells
|
|||||||
if (!UpdateChanneledTargetList())
|
if (!UpdateChanneledTargetList())
|
||||||
{
|
{
|
||||||
Log.outDebug(LogFilter.Spells, "Channeled spell {0} is removed due to lack of targets", m_spellInfo.Id);
|
Log.outDebug(LogFilter.Spells, "Channeled spell {0} is removed due to lack of targets", m_spellInfo.Id);
|
||||||
SendChannelUpdate(0);
|
m_timer = 0;
|
||||||
finish();
|
|
||||||
|
// 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)
|
if (m_timer > 0)
|
||||||
|
|||||||
@@ -2592,6 +2592,11 @@ namespace Game.Spells
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SpellFamilyNames.Mage:
|
||||||
|
// Arcane Missiles
|
||||||
|
if (SpellFamilyFlags[0] == 0x00000800)
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
case SpellFamilyNames.Priest:
|
case SpellFamilyNames.Priest:
|
||||||
switch (Id)
|
switch (Id)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user