Core/Unit: 2170541a51 followup
use true as default value since pretty much all the script calls will expect that
This commit is contained in:
1 parent
1a1fb6712c
commit
a17849bcfe
18 files changed
+35
-34
No files matched your search
@@ -2357,11 +2357,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