mauiboy Posted November 10, 2024 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 63 Reputation: 1 Joined: 07/06/16 Last Seen: February 1 Share 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 Link to comment Share on other sites More sharing options...
0 Playtester Posted November 18, 2024 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: 9 hours ago Share 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 Link to comment Share on other sites More sharing options...
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; }
Link to comment
Share on other sites
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.