mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 03:20:49 +00:00
libcast: abort on invalid custom casts
This commit is contained in:
@@ -359,6 +359,7 @@ libcast.customcast[strlower(multishot)] = function(begin)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function CastCustom(spell)
|
local function CastCustom(spell)
|
||||||
|
if not spell then return end
|
||||||
if not UnitCastingInfo(UnitName("player")) then
|
if not UnitCastingInfo(UnitName("player")) then
|
||||||
for custom, func in pairs(libcast.customcast) do
|
for custom, func in pairs(libcast.customcast) do
|
||||||
if strfind(strlower(spell), custom) or strlower(spell) == custom then
|
if strfind(strlower(spell), custom) or strlower(spell) == custom then
|
||||||
|
|||||||
Reference in New Issue
Block a user