--Safeguard to banner--
if select(2,GetTotemInfo(1)) ~= nil
and bannerKey ~= nil
then
if cdRemains(3411) == 0
then
TargetUnit(select(2,GetTotemInfo(1)))
CastSpellByName(GetSpellInfo(3411),"target")
end
if cdRemains(3411) > 0
and UnitExists("target")
and UnitIsFriend("player","target")
then
RunMacroText("/targetlasttarget")
end
end
--MockingBanner Throw--
if cdRemains(114192) == 0 and ( cdRemains(114203) <= 150 and cdRemains(114203) > 0 )
and bannerKey ~= nil
and GetCurrentKeyBoardFocus() == nil
then
CastSpellByName(GetSpellInfo(114192))
if SpellIsTargeting()
then
CameraOrSelectOrMoveStart()
CameraOrSelectOrMoveStop()
end
_castSpell(114192)
end
--DemoBanner Throw--
if cdRemains(114203) == 0
and bannerKey ~= nil
and GetCurrentKeyBoardFocus() == nil
then
CastSpellByName(GetSpellInfo(114203))
if SpellIsTargeting() ~= nil
then
CameraOrSelectOrMoveStart()
CameraOrSelectOrMoveStop()
end
_castSpell(114203)
end