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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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