Core/Scripts: Fixed GAMEOBJECT_TYPE_DOOR closing automatically after being opened with .gobj act (#19342)
Closes #19261.
This commit is contained in:
1 parent
c6e73587e5
commit
87784721a4
1 file changed
+3
-1
@@ -89,9 +89,11 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t const autoCloseTime = object->GetGOInfo()->GetAutoCloseTime() ? 10000u : 0u;
|
||||
|
||||
// Activate
|
||||
object->SetLootState(GO_READY);
|
||||
object->UseDoorOrButton(10000, false, handler->GetSession()->GetPlayer());
|
||||
object->UseDoorOrButton(autoCloseTime, false, handler->GetSession()->GetPlayer());
|
||||
|
||||
handler->PSendSysMessage("Object activated!");
|
||||
|
||||
|
||||
Reference in new issue
Block a user