Hi! I am sorry, I think the right variable is $searchTH not checkTownhall()
checkTownhall() I think is a function which returns if the th is outside or inside. And I think $searchTH is variable which has the th level of the current base your raid is looking at.
so instead of checkTownhall() change it to $searchTH. :D
checkTownhall() I think is a function which returns if the th is outside or inside. And I think $searchTH is variable which has the th level of the current base your raid is looking at.
so instead of checkTownhall() change it to $searchTH. :D