Jump to content
  • 0
Sign in to follow this  
dhaisuke

Modify Reflect Damage for Cart Termination, Safetywall, Desperado

Question

5 answers to this question

Recommended Posts

  • 0

Hi, I 'm not very good at source but you could try this if you like

 

in map/battle.c find

 

   	 if( wd->flag & BF_SHORT ) {            if( !is_boss(src) ) {                if( sc->data[SC_DEATHBOUND] && skill_id != WS_CARTTERMINATION ) { 

 

notice the  bold part  if( sc->data[sC_DEATHBOUND] && skill_id != WS_CARTTERMINATION ) {

 

try adding the skill id of the skill you want to bypass reflect like this

 

 

if( sc->data[SC_DEATHBOUND] && skill_id != WS_CARTTERMINATION && skill_id != GS_DESPERADO ) { 

 

I believe that part i asked you to find is the part that tells that CT should by-pass reflect(according to irowiki, that's official).

Let me know if it works, if it does maybe i'll try helping you with safetywall too, unlike desperado you can probably not do the same thing on safety wall probably something like what's done on deathbound is needed for that or much complex.

 

So yeah, just test it on a test server first. Implement at your own risk okay xD

Edited by Happy

Share this post


Link to post
Share on other sites
  • 0

Hi sir this is my battle.c

 

if( wd->flag & BF_SHORT ) {                        if( !is_boss(src) ) {                                if( sc->data[SC_DEATHBOUND] && skill_id != WS_CARTTERMINATION ) {                                        uint8 dir = map->calc_dir(target,src->x,src->y),                                              t_dir = unit->getdir(target);

 

but by default Cart Termination is Reflecting

Share this post


Link to post
Share on other sites

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.