mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 10:26:02 +00:00
libcast: abort on invalid custom casts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user