Core/Spells: Removed duplicated check
Revert "Core/Groups: fix wrong query for loading group instance data. canReset attribute was calculated in the wrong way"
Core/Scripts: moved Wild Growth calculation to script and fixed formula
This commit is contained in:
hondacrx
2020-06-21 13:10:09 -04:00
parent 1a2411ae0f
commit b600c21ac2
4 changed files with 43 additions and 22 deletions
+1 -4
View File
@@ -2447,12 +2447,9 @@ namespace Game.Spells
if (effectHandleMode != SpellEffectHandleMode.HitTarget)
return;
if (unitTarget == null)
return;
// this effect use before aura Taunt apply for prevent taunt already attacking target
// for spell as marked "non effective at already attacking target"
if (!unitTarget.CanHaveThreatList() || unitTarget.GetVictim() == m_caster)
if (unitTarget == null || !unitTarget.CanHaveThreatList() || unitTarget.GetVictim() == m_caster)
{
SendCastResult(SpellCastResult.DontReport);
return;