Core/Spells: Fixed calling spellhit script hooks on launch when spell hits both caster and target with different effects

Port From (https://github.com/TrinityCore/TrinityCore/commit/04ab611111824c7709582637660d01eb117fe9fc)
This commit is contained in:
hondacrx
2019-09-04 13:22:38 -04:00
parent 0877e73ff2
commit b3bcfd1a8f
3 changed files with 49 additions and 21 deletions
+1 -1
View File
@@ -2435,7 +2435,7 @@ namespace Game.Entities
case SpellEffectName.Jump:
case SpellEffectName.JumpDest:
case SpellEffectName.LeapBack:
if (spellInfo.Speed == 0 && spellInfo.SpellFamilyName == 0)
if (spellInfo.Speed == 0 && spellInfo.SpellFamilyName == 0 && !spellInfo.HasAttribute(SpellAttr9.SpecialDelayCalculation))
spellInfo.Speed = MotionMaster.SPEED_CHARGE;
break;
}