mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10296] Move ChooseDisplayId to Creature class for access from script side
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
181428e132
commit
7bdf05901d
8 changed files with 62 additions and 60 deletions
|
|
@ -425,7 +425,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
|
|||
{
|
||||
if (CreatureInfo const* ci = GetCreatureTemplateStore(action.morph.creatureId))
|
||||
{
|
||||
uint32 display_id = sObjectMgr.ChooseDisplayId(0,ci);
|
||||
uint32 display_id = Creature::ChooseDisplayId(0,ci);
|
||||
m_creature->SetDisplayId(display_id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue