Hello! This code currently compiles without error. But the Dispell skill still bypassing GTB. Anyone with updated code for this? Thank you!
if (skill != nullptr && (skill->skill_type == BF_MAGIC || skill->nameid == SA_DISPELL) && // Basic magic skill
!skill->inf2[INF2_IGNOREGTB] && // Specific skill to bypass
((skill->inf == INF_ATTACK_SKILL || skill->inf == INF_GROUND_SKILL || skill->inf == INF_SUPPORT_SKILL) || // Target skills should get blocked even when cast on self
(skill->inf == INF_SELF_SKILL && src != bl))) // Self skills should get blocked on all targets except self
return 0;
}