That's right this way
function onAttack(cid, target)
if getCreatureCondition(cid, CONDITION_DRUNK) then
return false, doSendAnimatedText(getThingPos(cid), 'Fail', 215)
end
return true
end
until it worked but he did not return after the strike ends the condition