Code:
local buff = { 118,116,61305,28271,28272,61780,61721,2637,33786,5185,8936,50464,19750,82326,2061,9484,605,8129,331,8004,51505,403,77472,51514,5782,1120,48181,30108,2061,
2006,
2050,
9484,
2060,
596,
32546,
64901,
32375,
64843,5185,
339,
8936,
50769,
20484,
2637,
740,
33786,
50464,6201,
1120,
79268,
5782,
712,
691,
710,
5484,
1122,
18540 ,
982,64382,116,
12051,
118,
759,
61721,
28271,
61305,
28272,
61780,
7328,
635,
19750,
879,
82326,
10326,331,
2008,
2645,
8004,
1064,
51514,
73920,42650}
local castingSpell, _, _, _, _, endTime = UnitCastingInfo("focus")
for i,v in ipairs(buff) do
if IsSpellInRange("Skull Bash", "focus") and castingSpell == GetSpellInfo(v) and 1-((endTime/1000 - GetTime()/endTime) > 0.5 then return true end end