summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/skill.c5
-rwxr-xr-xtools/check-doc28
2 files changed, 31 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index c24ffc8c1..5d38cb242 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -10204,7 +10204,8 @@ int skill_castend_map (struct map_session_data *sd, short skill_num, const char
(sd->sc.data[SC_STASIS] && skill_block_check(&sd->bl, SC_STASIS, skill_num)) ||
(sd->sc.data[SC_KAGEHUMI] && skill_block_check(&sd->bl, SC_KAGEHUMI, skill_num)) ||
sd->sc.data[SC_OBLIVIONCURSE] ||
- sd->sc.data[SC__MANHOLE]
+ sd->sc.data[SC__MANHOLE] ||
+ (sd->sc.data[SC_ASH] && rnd()%2) //50% fail chance under ASH
)) {
skill_failed(sd);
return 0;
@@ -11119,7 +11120,7 @@ static int skill_unit_onplace (struct skill_unit *src, struct block_list *bl, un
case UNT_VOLCANIC_ASH:
if (!sce)
- sc_start(bl, SC_ASH, 50, sg->skill_lv, skill_get_time(MH_VOLCANIC_ASH, sg->skill_lv)); //50% chance
+ sc_start(bl, SC_ASH, 100, sg->skill_lv, skill_get_time(MH_VOLCANIC_ASH, sg->skill_lv));
break;
case UNT_GD_LEADERSHIP:
diff --git a/tools/check-doc b/tools/check-doc
new file mode 100755
index 000000000..4e8d036e8
--- /dev/null
+++ b/tools/check-doc
@@ -0,0 +1,28 @@
+#!/bin/sh
+# checking-doc script by trojal
+# modified by lighta
+
+case $1 in
+ 'script')
+ #find which script commands are missing from doc/script_commands.txt
+ echo "Missing scipt documentation for function :"
+ awk '/BUILDIN_DEF\(.*\),/ {b=match($0,"BUILDIN_DEF(.*),");c=match($0,",");print substr($0,b+12,c-b-12);}' ../src/map/script.c | xargs -I{} sh -c '! grep -Lq {} ../doc/script_commands.txt && echo {}'
+ awk '/BUILDIN_DEF2\(.*\),/ {b=match($0,"BUILDIN_DEF2(.*),");c=match($0,",");d=match($0 ,"\",\"");print substr($0,c+2,d-c-2);}' ../src/map/script.c | xargs -I{} sh -c '! grep -Lq {} ../doc/script_commands.txt && echo {}'
+ ;;
+
+ 'atc')
+ #find which atcommands are missing from doc/atcommands.txt
+ echo "Missing atcommand documentation for function :"
+ awk '/ACMD_DEF\(.*\),/ {b=match($0,"ACMD_DEF(.*),");c=match($0,",");print substr($0,b+9,c-b-10);}' ../src/map/atcommand.c | xargs -I{} sh -c '! grep -Lq {} ../doc/atcommands.txt && echo {}'
+ awk '/ACMD_DEF2\(.*\),/ {b=match($0,"ACMD_DEF2(.*),");c=match($0,",");print substr($0,b+10,c-b-10);}' ../src/map/atcommand.c | xargs -I{} sh -c '! grep -Lq {} ../doc/atcommands.txt && echo {}'
+ ;;
+ 'both')
+ $0 script
+ $0 atc
+ ;;
+
+ *)
+ echo "Usage: check-doc { script | atc | both }"
+ ;;
+esac
+