Core/Scripts: Fixed GAMEOBJECT_TYPE_DOOR closing automatically after being opened with .gobj act (#19342)

Closes #19261.
This commit is contained in:
S.V authored and Aokromes committed 2017-06-18 15:41:45 +02:00
1 parent c6e73587e5
commit 87784721a4
1 file changed
+3 -1
+3 -1
View File
@@ -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!");