Jump to content
  • 0

GTB IMMUNE TO TAROT EAT


gustabrayan225

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.04
  • Content Count:  32
  • Reputation:   0
  • Joined:  05/01/24
  • Last Seen:  

Can anyone help me leave the GTB card, immune to Tarot COMA... thanks

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:  898
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

You could try to make Tarot Card of Fate a "magic" skill instead of "misc", but I'm not user what else that would affect.

Maybe a cleaner solution would be to adjust the requirements for GTB to work in status.cpp:

	// Skills (magic type) that are blocked by Golden Thief Bug card or Wand of Hermod
	if (status_isimmune(bl)) {
		std::shared_ptr<s_skill_db> skill = skill_db.find(battle_getcurrentskill(src));

		if (skill == nullptr) // Check for ground-type skills using the status when a player moves through units
			skill = skill_db.find(status_db.getSkill(type));

		if (skill != nullptr && skill->skill_type == BF_MAGIC && // 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;
	}

See, these are all the conditions for GTB to block a status.

You could add the logic here. For example by checking for the specific skill id of CG_TAROTCARD and then just return 0. Though that would make GTB immune to all status changes from Tarot, so I guess you want to additional check for "type == SC_COMA".

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