From dcb0ac5b078dfecf76e5ee9566d52251a8d72ed7 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 24 Feb 2020 16:43:44 +0100 Subject: [PATCH] libcast: abort on invalid custom casts --- libs/libcast.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/libcast.lua b/libs/libcast.lua index f3aeb847..5baa4fc8 100644 --- a/libs/libcast.lua +++ b/libs/libcast.lua @@ -359,6 +359,7 @@ libcast.customcast[strlower(multishot)] = function(begin) end local function CastCustom(spell) + if not spell then return end if not UnitCastingInfo(UnitName("player")) then for custom, func in pairs(libcast.customcast) do if strfind(strlower(spell), custom) or strlower(spell) == custom then