mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Unit: 2170541a51 followup
use true as default value since pretty much all the script calls will expect that
This commit is contained in:
@@ -2490,11 +2490,11 @@ void Spell::EffectDistract(SpellEffIndex /*effIndex*/)
|
||||
if (unitTarget->HasUnitState(UNIT_STATE_CONFUSED | UNIT_STATE_STUNNED | UNIT_STATE_FLEEING))
|
||||
return;
|
||||
|
||||
unitTarget->SetFacingTo(unitTarget->GetAngle(destTarget));
|
||||
unitTarget->ClearUnitState(UNIT_STATE_MOVING);
|
||||
|
||||
if (unitTarget->GetTypeId() == TYPEID_UNIT)
|
||||
unitTarget->GetMotionMaster()->MoveDistract(damage * IN_MILLISECONDS);
|
||||
|
||||
unitTarget->StopMoving();
|
||||
unitTarget->SetFacingTo(unitTarget->GetAngle(destTarget));
|
||||
}
|
||||
|
||||
void Spell::EffectPickPocket(SpellEffIndex /*effIndex*/)
|
||||
|
||||
Reference in New Issue
Block a user