mauiboy Posted November 10, 2024 Posted November 10, 2024 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; } Quote
0 Playtester Posted November 18, 2024 Posted November 18, 2024 "skill" in this part of the code is the skill that starts a status change. Dispell doesn't start a status change so it will never reach this code. Did you try changing the type of SA_DISPELL in the skill_db.yml from "Magic" to "Misc"? Maybe works even without code change. Quote
Question
mauiboy
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; }
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.