mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Fix SCRIPT_COMMAND_ORIENTATION db script command.
--HG-- branch : trunk
This commit is contained in:
@@ -3713,11 +3713,12 @@ void Map::ScriptsProcess()
|
||||
sLog.outError("SCRIPT_COMMAND_ORIENTATION call for NULL creature.");
|
||||
break;
|
||||
}
|
||||
Unit* pPlayer = (Unit*)source;
|
||||
|
||||
if (step.script->datalong)
|
||||
source->ToCreature()->SetInFront(pPlayer);
|
||||
source->ToCreature()->SetInFront((Unit*)source);
|
||||
else
|
||||
source->ToCreature()->SetOrientation(step.script->o);
|
||||
|
||||
source->ToCreature()->SendMovementFlagUpdate();
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user