fix some spells not working properly when target explicitly set

This commit is contained in:
Jrc13245
2026-03-30 08:16:27 -04:00
parent 7577c76050
commit f2046497bd
+1 -1
View File
@@ -2627,7 +2627,7 @@ function CleveRoids.DoWithConditionals(msg, hook, fixEmptyTargetFunc, targetBefo
if msg == CleveRoids.Localized.Attack and conditionals.checkchanneled then
AttackTarget()
else
if (CleveRoids.hasSuperwow or CleveRoids.hasCastSpellByNameUnitToken) and conditionals.target then
if (CleveRoids.hasSuperwow or CleveRoids.hasCastSpellByNameUnitToken) and conditionals.target and origTarget then
CastSpellByName(castMsg, conditionals.target)
else
CastSpellByName(castMsg)