Jump to content
  • 0

Disable Emperium Skill Imunitty out of castles


Tanlor

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   14
  • Joined:  07/23/18
  • Last Seen:  

Hello!

I'm trying to disable the Emperium Skill Immunity when it spawns out of a gvg_castle mapflag. It's cause I NEED to enable SG_Hate (Star Gladiator Oposition) on that, so SG can boost the damage on the Emperium before WoE Starts. How I do this?

My Emperium is actually immune to Skills in all maps (MO_TRIPLEATTACK works on it, btw)

My Skill.cpp:

	if (ud && ud->immune_attack)
		return false;
	if(md && md->guardian_data) {
		if ((status_bl_has_mode(bl,MD_SKILL_IMMUNE) || (class_ == MOBID_EMPERIUM && !(skill_get_inf3(skill_id)&INF3_HIT_EMP))) && flag&BF_SKILL) //Skill immunity.
			return false;

I searched a lot on how to change that i didn't found anything. The solutions I had was in C.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

You have to edit the skill in skill_db.txt and add 0x000010 to the inf3 value, which is:

//    0x000010 - skill that could hit emperium

So

434,9,6,1,0,0x1,0,3,1,yes,0,0,0,magic,0,0x0,    SG_HATE,Hatred of the Sun Moon and Stars

becomes:

434,9,6,1,0,0x1,0,3,1,yes,0,0,0,magic,0,0x10,    SG_HATE,Hatred of the Sun Moon and Stars

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