diff options
author | panikon <panikon@zoho.com> | 2014-07-11 04:29:29 -0300 |
---|---|---|
committer | panikon <panikon@zoho.com> | 2014-07-11 04:29:29 -0300 |
commit | da190e09a33591aaabfd2c7735fd64ebb12f78e9 (patch) | |
tree | 1dc3f034a0589cac2fed59c4340cd0509565ec3f /src/map/pc.c | |
parent | ed9628528dff9865085106a3edf2e5fa7962625c (diff) | |
download | hercules-da190e09a33591aaabfd2c7735fd64ebb12f78e9.tar.gz hercules-da190e09a33591aaabfd2c7735fd64ebb12f78e9.tar.bz2 hercules-da190e09a33591aaabfd2c7735fd64ebb12f78e9.tar.xz hercules-da190e09a33591aaabfd2c7735fd64ebb12f78e9.zip |
Mado behaviour changes
- Corrected list of skills that can be used while using mado
- Corrected list of supportive skills that can't be cast in users with mado
- Fixed *setmadogear behaviour, it would set mado to any character
Added SI_FALLENEMPIRE to SR_FALLENEMPIRE
Added SI_SILENTBREEZE to MH_SILENTBREEZE
Fixed MH_SILENTBREEZE entry in skill_db
Special thanks to Rytech
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 104a3cde0..fb1fae2c7 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8118,19 +8118,18 @@ int pc_setriding(TBL_PC* sd, int flag) return 0; } -/*========================================== - * Give player a mado - *------------------------------------------*/ -int pc_setmadogear(TBL_PC* sd, int flag) -{ - if( flag ){ - if( pc->checkskill(sd,NC_MADOLICENCE) > 0 ) +/** + * Gives player a mado + * @param flag 1 Set mado + **/ +void pc_setmadogear( struct map_session_data *sd, int flag ) { + if( flag ) { + if( (sd->class_&MAPID_THIRDMASK) == MAPID_MECHANIC ) pc->setoption(sd, sd->sc.option|OPTION_MADOGEAR); - } else if( pc_ismadogear(sd) ){ - pc->setoption(sd, sd->sc.option&~OPTION_MADOGEAR); - } + } else if( pc_ismadogear(sd) ) + pc->setoption(sd, sd->sc.option&~OPTION_MADOGEAR); - return 0; + return; } /** @@ -8154,7 +8153,8 @@ bool pc_can_attack( struct map_session_data *sd, int target_id ) { sd->sc.data[SC_TRICKDEAD] || (sd->sc.data[SC_SIREN] && sd->sc.data[SC_SIREN]->val2 == target_id) || sd->sc.data[SC_BLADESTOP] || - sd->sc.data[SC_DEEP_SLEEP] ) + sd->sc.data[SC_DEEP_SLEEP] /*|| + sd->sc.data[SC_FALLENEMPIRE]TODO*/) return false; return true; |