chore(Spell/Effects): Small improvement to EffectDistract (#15920)
* chore(Spell/Effects): Small improvement to EffectDistract * Update SpellEffects.cpp
This commit is contained in:
@@ -2704,11 +2704,8 @@ void Spell::EffectDistract(SpellEffIndex /*effIndex*/)
|
|||||||
if (unitTarget->HasUnitState(UNIT_STATE_CONFUSED | UNIT_STATE_STUNNED | UNIT_STATE_FLEEING))
|
if (unitTarget->HasUnitState(UNIT_STATE_CONFUSED | UNIT_STATE_STUNNED | UNIT_STATE_FLEEING))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
unitTarget->SetFacingTo(unitTarget->GetAngle(destTarget));
|
unitTarget->SetFacingTo(unitTarget->GetAngle(destTarget)); /// @BUG Causes the player to stop moving + interrupts spellcast.
|
||||||
unitTarget->ClearUnitState(UNIT_STATE_MOVING);
|
unitTarget->GetMotionMaster()->MoveDistract(damage * IN_MILLISECONDS);
|
||||||
|
|
||||||
if (unitTarget->GetTypeId() == TYPEID_UNIT)
|
|
||||||
unitTarget->GetMotionMaster()->MoveDistract(damage * IN_MILLISECONDS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Spell::EffectPickPocket(SpellEffIndex /*effIndex*/)
|
void Spell::EffectPickPocket(SpellEffIndex /*effIndex*/)
|
||||||
|
|||||||
@@ -713,8 +713,7 @@ void SpellMgr::LoadSpellInfoCorrections()
|
|||||||
|
|
||||||
ApplySpellFix({
|
ApplySpellFix({
|
||||||
5171, // Slice and Dice
|
5171, // Slice and Dice
|
||||||
6774, // Slice and Dice
|
6774 // Slice and Dice
|
||||||
1725 // Distract
|
|
||||||
}, [](SpellInfo* spellInfo)
|
}, [](SpellInfo* spellInfo)
|
||||||
{
|
{
|
||||||
spellInfo->AttributesEx3 |= SPELL_ATTR3_SUPRESS_TARGET_PROCS;
|
spellInfo->AttributesEx3 |= SPELL_ATTR3_SUPRESS_TARGET_PROCS;
|
||||||
|
|||||||
Reference in New Issue
Block a user