mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10961] Avoid use scripting support wrappers for internal server code.
This commit is contained in:
parent
3a99027a80
commit
fda171d6bd
4 changed files with 7 additions and 7 deletions
|
|
@ -460,7 +460,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
|
|||
m_creature->setFaction(action.set_faction.factionId);
|
||||
else
|
||||
{
|
||||
if (CreatureInfo const* ci = GetCreatureTemplateStore(m_creature->GetEntry()))
|
||||
if (CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(m_creature->GetEntry()))
|
||||
{
|
||||
//if no id provided, assume reset and then use default
|
||||
if (m_creature->getFaction() != ci->faction_A)
|
||||
|
|
@ -476,7 +476,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
|
|||
//set model based on entry from creature_template
|
||||
if (action.morph.creatureId)
|
||||
{
|
||||
if (CreatureInfo const* ci = GetCreatureTemplateStore(action.morph.creatureId))
|
||||
if (CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(action.morph.creatureId))
|
||||
{
|
||||
uint32 display_id = Creature::ChooseDisplayId(ci);
|
||||
m_creature->SetDisplayId(display_id);
|
||||
|
|
@ -836,7 +836,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
|
|||
// set model based on entry from creature_template
|
||||
if (action.mount.creatureId)
|
||||
{
|
||||
if (CreatureInfo const* cInfo = GetCreatureTemplateStore(action.mount.creatureId))
|
||||
if (CreatureInfo const* cInfo = ObjectMgr::GetCreatureTemplate(action.mount.creatureId))
|
||||
{
|
||||
uint32 display_id = Creature::ChooseDisplayId(cInfo);
|
||||
m_creature->Mount(display_id);
|
||||
|
|
|
|||
|
|
@ -2714,7 +2714,7 @@ void Map::ScriptsProcess()
|
|||
pOwner->SetDisplayId(step.script->morph.creatureOrModelEntry);
|
||||
else
|
||||
{
|
||||
CreatureInfo const* ci = GetCreatureTemplateStore(step.script->morph.creatureOrModelEntry);
|
||||
CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(step.script->morph.creatureOrModelEntry);
|
||||
uint32 display_id = Creature::ChooseDisplayId(ci);
|
||||
|
||||
pOwner->SetDisplayId(display_id);
|
||||
|
|
@ -2771,7 +2771,7 @@ void Map::ScriptsProcess()
|
|||
pOwner->Mount(step.script->mount.creatureOrModelEntry);
|
||||
else
|
||||
{
|
||||
CreatureInfo const* ci = GetCreatureTemplateStore(step.script->mount.creatureOrModelEntry);
|
||||
CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(step.script->mount.creatureOrModelEntry);
|
||||
uint32 display_id = Creature::ChooseDisplayId(ci);
|
||||
|
||||
pOwner->Mount(display_id);
|
||||
|
|
|
|||
|
|
@ -8084,7 +8084,7 @@ void ObjectMgr::LoadMailLevelRewards()
|
|||
continue;
|
||||
}
|
||||
|
||||
if(!GetCreatureTemplateStore(senderEntry))
|
||||
if(!GetCreatureTemplate(senderEntry))
|
||||
{
|
||||
sLog.outErrorDb("Table `mail_level_reward` have nonexistent sender creature entry (%u) for level %u that invalid not include any player races, ignoring.",senderEntry,level);
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10960"
|
||||
#define REVISION_NR "10961"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue