mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
bypass target animation on clickcast
This commit is contained in:
+5
-1
@@ -132,10 +132,11 @@ pfUI:RegisterModule("raid", function ()
|
||||
DropItemOnUnit("raid" .. this.id);
|
||||
else
|
||||
TargetUnit("raid" .. this.id);
|
||||
-- clickcast: Shift-modifier
|
||||
-- clickcast: shift modifier
|
||||
if IsShiftKeyDown() then
|
||||
if pfUI_config.unitframes.raid.clickcast_shift ~= "" then
|
||||
CastSpellByName(pfUI_config.unitframes.raid.clickcast_shift)
|
||||
pfUI.uf.target.noanim = "yes"
|
||||
TargetLastTarget()
|
||||
return
|
||||
end
|
||||
@@ -143,6 +144,7 @@ pfUI:RegisterModule("raid", function ()
|
||||
elseif IsAltKeyDown() then
|
||||
if pfUI_config.unitframes.raid.clickcast_alt ~= "" then
|
||||
CastSpellByName(pfUI_config.unitframes.raid.clickcast_alt)
|
||||
pfUI.uf.target.noanim = "yes"
|
||||
TargetLastTarget()
|
||||
return
|
||||
end
|
||||
@@ -150,6 +152,7 @@ pfUI:RegisterModule("raid", function ()
|
||||
elseif IsControlKeyDown() then
|
||||
if pfUI_config.unitframes.raid.clickcast_ctrl ~= "" then
|
||||
CastSpellByName(pfUI_config.unitframes.raid.clickcast_ctrl)
|
||||
pfUI.uf.target.noanim = "yes"
|
||||
TargetLastTarget()
|
||||
return
|
||||
end
|
||||
@@ -157,6 +160,7 @@ pfUI:RegisterModule("raid", function ()
|
||||
else
|
||||
if pfUI_config.unitframes.raid.clickcast ~= "" then
|
||||
CastSpellByName(pfUI_config.unitframes.raid.clickcast)
|
||||
pfUI.uf.target.noanim = "yes"
|
||||
TargetLastTarget()
|
||||
return
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user