mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-16 21:09:50 -04: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