Jump to content
  • 0
Sign in to follow this  
Ehwaz

Maelstrom prevent cast Bloodylust

Question

I trying make maelstrom prevent cast other paint skill like manhole, chaospanic

But, only Bloodylust still cast on Maelstrom

 

My code\, skill.c

		case SC_BLOODYLUST:
		case SC_CHAOSPANIC:
		case SC_MANHOLE:
			//Non stackable on themselves and traps (including venom dust which does not has the trap inf2 set)
			if (skill_id != g_skill_id && !(skill->get_inf2(g_skill_id)&INF2_TRAP) && g_skill_id != AS_VENOMDUST && g_skill_id != MH_POISON_MIST && g_skill_id != SC_MAELSTROM)
				return 0;

unit.c:

	    if( sd )
    {
        if( skill->not_ok(skill_id, sd) || !skill->check_condition_castbegin(sd, skill_id, skill_lv) )
            return 0;
        /**
         * "WHY IS IT HEREE": ice wall cannot be canceled past this point, the client displays the animation even,
         * if we cancel it from castend_pos, so it has to be here for it to not display the animation.
         **/
        if (skill_id == WZ_ICEWALL && map->getcell(src->m, src, skill_x, skill_y, CELL_CHKNOICEWALL))
            return 0;
    }
 if(sc && sc->data[SC__MAELSTROM] && (skill_id >= SC_MANHOLE && skill_id <= SC_FEINTBOMB) && skill_id == GN_HELLS_PLANT) {
		clif->skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);
		return 0;
	}

skill_db.txt

2303,7,6,2,0,0x1,0,3,1,yes,0,0,0,magic,0,	SC_BLOODYLUST,Bloody Lust

skill_unit_db.txt

2303,0xd0,    ,  3, 0,  -1,all,   0x2018	//SC_BLOODYLUST

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.