libcast: abort on invalid custom casts

This commit is contained in:
shagu
2020-02-24 16:43:44 +01:00
parent 7c2988d413
commit dcb0ac5b07
+1
View File
@@ -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