drskull/TrinityCore — comment on commit d6ebfa993bd774135b255f1a6560a8aa22237b89
File: src/server/game/Entities/Unit/Unit.cpp line 7090
By drskull:

|| attType == BASE_ATTACK && procFlag & PROC_FLAG_DONE_OFFHAND_ATTACK
|| attType == BASE_ATTACK && !(procFlag & PROC_FLAG_DONE_MAINHAND_ATTACK)
function is same but your format is better