summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c2
-rw-r--r--src/char_sql/char.c2
-rw-r--r--src/map/battle.c1
-rw-r--r--src/map/skill.c5
-rw-r--r--src/map/status.c5
5 files changed, 7 insertions, 8 deletions
diff --git a/src/char/char.c b/src/char/char.c
index a0286250a..ba97a4139 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -4089,7 +4089,7 @@ int do_init(int argc, char **argv) {
mapindex_init(); //Needed here for the start-point reading.
start_point.map = mapindex_name2id("new_1-1.gat");
char_config_read((argc < 2) ? CHAR_CONF_NAME : argv[1]);
- char_lan_config_read((argc > 1) ? argv[1] : LOGIN_LAN_CONF_NAME);
+ char_lan_config_read((argc > 3) ? argv[3] : LOGIN_LAN_CONF_NAME);
if (strcmp(userid, "s1")==0 && strcmp(passwd, "p1")==0) {
ShowError("Using the default user/password s1/p1 is NOT RECOMMENDED.\n");
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 2b405cade..058ab1f2b 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -4109,7 +4109,7 @@ int do_init(int argc, char **argv){
start_point.map = mapindex_name2id("new_1-1.gat");
char_config_read((argc < 2) ? CHAR_CONF_NAME : argv[1]);
- char_lan_config_read((argc > 1) ? argv[1] : LAN_CONF_NAME);
+ char_lan_config_read((argc > 3) ? argv[3] : LAN_CONF_NAME);
sql_config_read(SQL_CONF_NAME);
if (strcmp(userid, "s1")==0 && strcmp(passwd, "p1")==0) {
diff --git a/src/map/battle.c b/src/map/battle.c
index c17977151..bf830de1a 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2527,6 +2527,7 @@ struct Damage battle_calc_magic_attack(
case PR_SANCTUARY:
ad.blewcount|=0x10000;
case AL_HEAL:
+ case PR_BENEDICTIO:
case WZ_FIREPILLAR:
flag.imdef = 1;
break;
diff --git a/src/map/skill.c b/src/map/skill.c
index d05e845ec..716d6ef17 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -4097,7 +4097,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
skill_get_splash(skillid, skilllv), BL_CHAR,
src, skillid, skilllv, tick, flag|BCT_ENEMY,
skill_castend_damage_id);
- battle_damage(src, src, skill_area_temp[2], 0);
+ battle_damage(src, src, status_get_max_hp(src), 0);
break;
/* パ?ティスキル */
@@ -5978,6 +5978,9 @@ int skill_castend_pos2( struct block_list *src, int x,int y,int skillid,int skil
nullpo_retr(0, src);
+ if(status_isdead(src))
+ return 0;
+
if(src->type==BL_PC)
sd=(struct map_session_data *)src;
diff --git a/src/map/status.c b/src/map/status.c
index 9358aad07..0edb39ccb 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -354,11 +354,6 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
int mode, race, hide_flag;
struct status_change *sc=NULL, *tsc;
- if (src && status_isdead(src))
- return 0;
- if (target && status_isdead(target) && skill_num != ALL_RESURRECTION && skill_num != PR_REDEMPTIO)
- return 0;
-
mode = src?status_get_mode(src):MD_CANATTACK;
if (!skill_num && !(mode&MD_CANATTACK))