Skip to content

Commit

Permalink
Merge 3.3.5 to npcbots_3.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Aug 16, 2024
2 parents d04ddd3 + bcb3ffa commit 18ac20d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sql/updates/world/3.3.5/2024_08_11_00_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `target_type`=8 WHERE `entryorguid`=2711500 AND `source_type`=9 AND `id`=3 AND `link`=0;
4 changes: 2 additions & 2 deletions src/server/game/Events/GameEventMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ bool GameEventMgr::StartEvent(uint16 event_id, bool overwrite)
{
mGameEvent[event_id].start = GameTime::GetGameTime();
if (data.end <= data.start)
data.end = data.start + data.length;
data.end = data.start + data.length * MINUTE;
}

// When event is started, set its worldstate to current time
Expand Down Expand Up @@ -186,7 +186,7 @@ void GameEventMgr::StopEvent(uint16 event_id, bool overwrite)
{
data.start = GameTime::GetGameTime() - data.length * MINUTE;
if (data.end <= data.start)
data.end = data.start + data.length;
data.end = data.start + data.length * MINUTE;
}
else if (serverwide_evt)
{
Expand Down

0 comments on commit 18ac20d

Please sign in to comment.