Jump to content
  • 0

Updated code for GTB blocks Dispell Skills


Question

Posted

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

  • 0
Posted

"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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...