if unit == "target" and UnitIsEnemy("player", "target") then
self.CastbarBorder:SetBackdropColor(0.65, 0.27, 0.21)
self.CastbarBorder:SetBackdropBorderColor(0.65, 0.27, 0.21)
else
self.CastbarBorder:SetBackdropColor(0.55, 0.57, 0.61)
self.CastbarBorder:SetBackdropBorderColor(0.55, 0.57, 0.61)
end
any reason why this isnt working that I dont know about?
if unit == "target" and UnitIsEnemy("player", "target") then
self.CastbarBorder:SetBackdropColor(0.65, 0.27, 0.21)
self.CastbarBorder:SetBackdropBorderColor(0.65, 0.27, 0.21)
else
self.CastbarBorder:SetBackdropColor(0.55, 0.57, 0.61)
self.CastbarBorder:SetBackdropBorderColor(0.55, 0.57, 0.61)
end
any reason why this isnt working that I dont know about?
This is only used when starting up(initial), so only if you enter the game while targetting an enemy player the above script will trigger.
__________________
Three things are certain,
Death, taxes and site not found,
You, victim of one.