Skip to content

Commit

Permalink
#95 Fixed an issue with Freehold (and possibly others) MDT enemies no…
Browse files Browse the repository at this point in the history
…t loading.
  • Loading branch information
Wotuu committed Jan 17, 2019
1 parent 0b94f64 commit cf20771
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Logic/MDT/Data/MDTDungeon.php
Expand Up @@ -48,6 +48,8 @@ private function _getMDTNPCs()
MethodDungeonTools.dungeonEnemies = {}
MethodDungeonTools.scaleMultiplier = {}
' .
// Some files require LibStub
file_get_contents(base_path('app/Logic/MDT/Lua/LibStub.lua')) .
file_get_contents(
base_path('vendor/nnogga/MethodDungeonTools/BattleForAzeroth/' . Conversion::getMDTDungeonName($this->_dungeonName) . '.lua')
) .
Expand Down
4 changes: 4 additions & 0 deletions app/Logic/MDT/Lua/LibStub.lua
Expand Up @@ -28,3 +28,7 @@ if not LibStub or LibStub.minor < LIBSTUB_MINOR then
function LibStub:IterateLibraries() return pairs(self.libs) end
setmetatable(LibStub, { __call = LibStub.GetLibrary })
end

-- WOTUU: Dummy AceGUI library
local ACEGUI_MAJOR, ACEGUI_MINOR = "AceGUI-3.0", 34
local AceGUI, oldminor = LibStub:NewLibrary(ACEGUI_MAJOR, ACEGUI_MINOR)

0 comments on commit cf20771

Please sign in to comment.