summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-15 18:33:32 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-15 18:33:32 +0000
commit1197558778704f21e962aaadcae6c8d09dc7f9b5 (patch)
treef9200e3f1aff52c4c6cf20f2765658e699033e5d /src/map
parent9f49994f8740db8b4c1a4b34f0c79ab95a4f6049 (diff)
downloadhercules-1197558778704f21e962aaadcae6c8d09dc7f9b5.tar.gz
hercules-1197558778704f21e962aaadcae6c8d09dc7f9b5.tar.bz2
hercules-1197558778704f21e962aaadcae6c8d09dc7f9b5.tar.xz
hercules-1197558778704f21e962aaadcae6c8d09dc7f9b5.zip
- Removed the hardcoded duration of 30seconds for sleep.
- Fixed rangecheck for pet skill usage of INF_SELF_SKILL - Removed inall/exall from atcommand.conf since those two do not exist! (pointed out by Ancyker) - @me now uses entry 270 in msg_athena as output format. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5615 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c2
-rw-r--r--src/map/mob.c2
-rw-r--r--src/map/pet.c3
-rw-r--r--src/map/status.c6
4 files changed, 5 insertions, 8 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index a9f3ccef2..4bc9d5ec5 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9700,7 +9700,7 @@ int atcommand_me(
}
sscanf(message, "%199[^\n]", tempmes);
- sprintf(atcmd_output, "* %s %s *", sd->status.name, tempmes);
+ sprintf(atcmd_output, msg_txt(270), sd->status.name, tempmes);
clif_disp_overhead(sd, atcmd_output);
return 0;
diff --git a/src/map/mob.c b/src/map/mob.c
index 911841cb1..822eb61d9 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3513,7 +3513,7 @@ int mobskill_use_id(struct mob_data *md,struct block_list *target,int skill_idx)
switch(skill_id){ /* 何か特殊な処理が必要 */
case ALL_RESURRECTION: /* リザレクション */
- if(target->type != BL_PC && battle_check_undead(status_get_race(target),status_get_elem_type(target))){ /* 敵がアンデッドなら */
+ if(battle_check_undead(status_get_race(target),status_get_elem_type(target))){ /* 敵がアンデッドなら */
forcecast=1; /* ターンアンデットと同じ詠唱時間 */
casttime=skill_castfix(&md->bl, PR_TURNUNDEAD,skill_lv, 0);
}
diff --git a/src/map/pet.c b/src/map/pet.c
index edbe3d5dc..306f21ff2 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -315,7 +315,8 @@ static int petskill_castend2(struct pet_data *pd, struct block_list *target, uns
} else { //Targeted Skill
if (!target)
return 0;
- if(!check_distance_bl(&pd->bl, target,
+ if(!skill_get_inf(skill_id)&INF_SELF_SKILL && //No range check for self skills.
+ !check_distance_bl(&pd->bl, target,
skill_get_range2(&pd->bl, skill_id, skill_lv)))
return 0;
diff --git a/src/map/status.c b/src/map/status.c
index 48d762900..ff1eb1fd0 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4009,10 +4009,6 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
if(val3 < 1) val3 = 1;
tick = 5000;
break;
- case SC_SLEEP: /* 睡眠 */
- if(!(flag&4))
- tick = 30000;//睡眠はステ?タス耐性に?わらず30秒
- break;
/* option2 */
case SC_DPOISON: /* 猛毒 */
@@ -4454,7 +4450,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
case SC_MAXOVERTHRUST:
case SC_SILENCE: /* 沈?(レックスデビ?ナ) */
case SC_ASSUMPTIO: /* アスムプティオ */
- break;
+ case SC_SLEEP:
// gs_something1 [Vicious]
case SC_MADNESSCANCEL:
case SC_ADJUSTMENT: