Added battle config 'warg_can_falcon'. (tid:63060, credits: 3CeAM r112)
Fixed a documentation issue for @size. (bugreport:8547) http://rathena.org/board/tracker/issue-8547-size-size/ Signed-off-by: Euphy <euphy.raliel@rathena.org>
This commit is contained in:
@@ -4083,7 +4083,7 @@ ACMD_FUNC(mount_peco)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
if( (sd->class_&MAPID_THIRDMASK) == MAPID_RANGER && pc_checkskill(sd,RA_WUGRIDER) > 0 ) {
|
||||
if( (sd->class_&MAPID_THIRDMASK) == MAPID_RANGER && pc_checkskill(sd,RA_WUGRIDER) > 0 && (!pc_isfalcon(sd) || battle_config.warg_can_falcon) ) {
|
||||
if( !pc_isridingwug(sd) ) {
|
||||
clif_displaymessage(sd->fd,msg_txt(sd,1121)); // You have mounted your Warg.
|
||||
pc_setoption(sd, sd->sc.option|OPTION_WUGRIDER);
|
||||
|
||||
@@ -7345,6 +7345,7 @@ static const struct _battle_data {
|
||||
{ "feature.autotrade_direction", &battle_config.feature_autotrade_direction, 4, 0, 7, },
|
||||
{ "feature.autotrade_sit", &battle_config.feature_autotrade_sit, 1, 0, 1, },
|
||||
{ "disp_serverbank_msg", &battle_config.disp_serverbank_msg, 0, 0, 1, },
|
||||
{ "warg_can_falcon", &battle_config.warg_can_falcon, 0, 0, 1, },
|
||||
};
|
||||
#ifndef STATS_OPT_OUT
|
||||
/**
|
||||
|
||||
@@ -521,12 +521,14 @@ extern struct Battle_Config
|
||||
int discount_item_point_shop;
|
||||
int update_enemy_position;
|
||||
int devotion_rdamage;
|
||||
int disp_serverbank_msg;
|
||||
|
||||
// autotrade persistency
|
||||
int feature_autotrade;
|
||||
int feature_autotrade_direction;
|
||||
int feature_autotrade_sit;
|
||||
|
||||
int disp_serverbank_msg;
|
||||
int warg_can_falcon;
|
||||
} battle_config;
|
||||
|
||||
void do_init_battle(void);
|
||||
|
||||
@@ -13916,7 +13916,7 @@ int skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_id
|
||||
* Ranger
|
||||
**/
|
||||
case RA_WUGMASTERY:
|
||||
if( pc_isfalcon(sd) || pc_isridingwug(sd) || sd->sc.data[SC__GROOMY]) {
|
||||
if( (pc_isfalcon(sd) && !battle_config.warg_can_falcon) || pc_isridingwug(sd) || sd->sc.data[SC__GROOMY]) {
|
||||
clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
|
||||
return 0;
|
||||
}
|
||||
@@ -13928,7 +13928,7 @@ int skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_id
|
||||
}
|
||||
break;
|
||||
case RA_WUGRIDER:
|
||||
if( pc_isfalcon(sd) || ( !pc_isridingwug(sd) && !pc_iswug(sd) ) ) {
|
||||
if( (pc_isfalcon(sd) && !battle_config.warg_can_falcon) || ( !pc_isridingwug(sd) && !pc_iswug(sd) ) ) {
|
||||
clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user