mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[Build] Most errors fixed
This commit is contained in:
parent
868302dd0b
commit
778052084e
70 changed files with 619 additions and 602 deletions
|
|
@ -944,7 +944,7 @@ bool ScriptAction::GetScriptProcessTargets(WorldObject* pOrigSource, WorldObject
|
|||
CreatureInfo const* cinfo = ObjectMgr::GetCreatureTemplate(m_script->buddyEntry);
|
||||
pBuddy = m_map->GetCreature(cinfo->GetObjectGuid(m_script->searchRadiusOrGuid));
|
||||
|
||||
if (pBuddy && !((Creature*)pBuddy)->isAlive())
|
||||
if (pBuddy && !((Creature*)pBuddy)->IsAlive())
|
||||
{
|
||||
sLog.outError(" DB-SCRIPTS: Process table `%s` id %u, command %u has buddy %u by guid %u but buddy is dead, skipping.", m_table, m_script->id, m_script->command, m_script->buddyEntry, m_script->searchRadiusOrGuid);
|
||||
return false;
|
||||
|
|
@ -1248,7 +1248,7 @@ bool ScriptAction::HandleScriptStep()
|
|||
|
||||
bool failQuest = false;
|
||||
// Creature must be alive for giving credit
|
||||
if (pWorldObject && pWorldObject->GetTypeId() == TYPEID_UNIT && !((Creature*)pWorldObject)->isAlive())
|
||||
if (pWorldObject && pWorldObject->GetTypeId() == TYPEID_UNIT && !((Creature*)pWorldObject)->IsAlive())
|
||||
failQuest = true;
|
||||
else if (m_script->questExplored.distance != 0 && !pWorldObject->IsWithinDistInMap(pPlayer, float(m_script->questExplored.distance)))
|
||||
failQuest = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue