Core/Unit: 2170541a51 followup

use true as default value since pretty much all the script calls will expect that
This commit is contained in:
ccrs authored and Aokromes committed 2017-04-28 12:57:38 +02:00
1 parent 1a1fb6712c
commit a17849bcfe
18 files changed
+35 -34

No files matched your search

+3 -3
View File
@@ -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*/)