Skip to content

Commit

Permalink
[12837] Allow GAMEOBJECT_TYPE_BUTTON respawn using SCRIPT_COMMAND_RES…
Browse files Browse the repository at this point in the history
…PAWN_GAMEOBJECT

See discussion in
b5e29d353e83f8e10f64f29eb
24cbd1869ec3ea2
  • Loading branch information
cala committed Jan 29, 2015
1 parent 5b24123 commit 5aa2c8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/game/ScriptMgr.cpp
Expand Up @@ -390,8 +390,7 @@ void ScriptMgr::LoadScripts(ScriptMapMapName& scripts, const char* tablename)

if (info->type == GAMEOBJECT_TYPE_FISHINGNODE ||
info->type == GAMEOBJECT_TYPE_FISHINGHOLE ||
info->type == GAMEOBJECT_TYPE_DOOR ||
info->type == GAMEOBJECT_TYPE_BUTTON)
info->type == GAMEOBJECT_TYPE_DOOR)
{
sLog.outErrorDb("Table `%s` have gameobject type (%u) unsupported by command SCRIPT_COMMAND_RESPAWN_GAMEOBJECT for script id %u", tablename, info->type, tmp.id);
continue;
Expand Down Expand Up @@ -1351,8 +1350,7 @@ bool ScriptAction::HandleScriptStep()
}

if (pGo->GetGoType() == GAMEOBJECT_TYPE_FISHINGNODE ||
pGo->GetGoType() == GAMEOBJECT_TYPE_DOOR ||
pGo->GetGoType() == GAMEOBJECT_TYPE_BUTTON)
pGo->GetGoType() == GAMEOBJECT_TYPE_DOOR)
{
sLog.outErrorDb(" DB-SCRIPTS: Process table `%s` id %u, command %u can not be used with gameobject of type %u (guid: %u, buddyEntry: %u).", m_table, m_script->id, m_script->command, uint32(pGo->GetGoType()), m_script->respawnGo.goGuid, m_script->buddyEntry);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12836"
#define REVISION_NR "12837"
#endif // __REVISION_NR_H__

0 comments on commit 5aa2c8a

Please sign in to comment.