Code:
local ESC, _ = ...
local addonName = "ESC"
ESC = CreateFrame("Frame")
ESC:RegisterEvent("GARRISON_MISSION_COMPLETE_RESPONSE")
GARRISON_ANIMATION_LENGTH = 0
GarrisonMissionFrame.MissionComplete.NextMissionButton.Disable = function() C_Garrison.MissionBonusRoll(GarrisonMissionFrame.MissionComplete.currentMission.missionID) end
local function ESCTroughAnimation(...)
local mc = GarrisonMissionFrame.MissionComplete
if mc.currentMission then
mc.NextMissionButton:SetText(NEXT)
mc.Stage.EncountersFrame.FadeOut:Play()
mc.animIndex = GarrisonMissionComplete_FindAnimIndexFor(GarrisonMissionComplete_AnimRewards) - 1
mc.animTimeLeft = 0
if ( C_Garrison.CanOpenMissionChest(mc.currentMission.missionID) ) then
myDebug("Mission Success!")
mc.BonusRewards.ChestModel:Hide()
local bonusRewards = mc.BonusRewards
bonusRewards.waitForEvent = true
bonusRewards.waitForTimer = true
bonusRewards.success = false
bonusRewards:RegisterEvent("GARRISON_MISSION_BONUS_ROLL_COMPLETE")
C_Timer.After(0.1, GarrisonMissionComplete_OnRewardTimer)
C_Garrison.MissionBonusRoll(GarrisonMissionFrame.MissionComplete.currentMission.missionID)
PlaySound("UI_Garrison_CommandTable_ChestUnlock_Gold_Success")
mc.NextMissionButton:Disable()
else
mc.NextMissionButton:SetText("FAILED!")
myDebug("Mission Failed")
end
end
end
ESC:SetScript("OnEvent", ESCTroughAnimation)
Here is your addon which simulates the same thing.. all it does is bypass a animation... hitting esc just makes this code manually happen. Shut up about this stupid ass non working exploit.