mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
fix(Scripts/Deadmines): Fix Factory Door in Deadmines being closable (#15201)
* fix(DB/SAI): Open Factory Door correctly (irreversibly) Activate the Factory Door after the boss' death to open it instead of changing gameobject state only which can be reversed by another activation. * fix(Script/Instance): Prevent Door being closed again after Server Restart * Drop database name from update SQL Other people might not use the standard database names Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com> --------- Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>
This commit is contained in:
@@ -50,8 +50,9 @@ public:
|
||||
break;
|
||||
case GO_FACTORY_DOOR:
|
||||
gameobject->UpdateSaveToDb(true);
|
||||
// GoState (Door opened) is restored during GO creation, but we need to set LootState to prevent Lever from closing it again
|
||||
if (_encounters[TYPE_RHAHK_ZOR] == DONE)
|
||||
gameobject->SetGoState(GO_STATE_ACTIVE);
|
||||
gameobject->SetLootState(GO_ACTIVATED);
|
||||
break;
|
||||
case GO_IRON_CLAD_DOOR:
|
||||
gameobject->UpdateSaveToDb(true);
|
||||
|
||||
Reference in New Issue
Block a user