Jump to content
  • 0

Updated code for GTB blocks Dispell Skills


mauiboy

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   1
  • Joined:  07/06/16
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  897
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...