From 9e165cca592f03334f85acefebc9e329ac704979 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 21 Sep 2019 14:50:30 +0200 Subject: [PATCH] prediction: fix spell delay error on tbc --- modules/prediction.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/prediction.lua b/modules/prediction.lua index 440af5f1..cf54d624 100644 --- a/modules/prediction.lua +++ b/modules/prediction.lua @@ -318,7 +318,6 @@ pfUI:RegisterModule("prediction", "vanilla:tbc", function () pfUI.prediction.sender:RegisterEvent("UNIT_SPELLCAST_STOP") pfUI.prediction.sender:RegisterEvent("UNIT_SPELLCAST_FAILED") pfUI.prediction.sender:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED") - pfUI.prediction.sender:RegisterEvent("UNIT_SPELLCAST_DELAYED") -- vanilla pfUI.prediction.sender:RegisterEvent("CHAT_MSG_SPELL_SELF_BUFF") @@ -402,8 +401,7 @@ pfUI:RegisterModule("prediction", "vanilla:tbc", function () pfUI.prediction.sender:SendHealCommMsg("Resurrection/stop/") pfUI.prediction.sender.resurrecting = nil end - elseif strfind(event, "SPELLCAST_DELAYED", 1) then - if strfind(event, "UNIT_", 1) and arg1 ~= "player" then return end + elseif event == "SPELLCAST_DELAYED" then if pfUI.prediction.sender.healing then pfUI.prediction:HealDelay(player, arg1) pfUI.prediction.sender:SendHealCommMsg("Healdelay/" .. arg1 .. "/")