summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-19 17:49:23 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-19 17:49:23 +0000
commitda898e993549046daa47d7ad423ac8d4c2db46a0 (patch)
tree810341bc95e1be531df90fbd725e50955e3017d8 /src/map/battle.c
parent3a20af5477f778a3bbbf4970818b48fbd126bbbe (diff)
downloadhercules-da898e993549046daa47d7ad423ac8d4c2db46a0.tar.gz
hercules-da898e993549046daa47d7ad423ac8d4c2db46a0.tar.bz2
hercules-da898e993549046daa47d7ad423ac8d4c2db46a0.tar.xz
hercules-da898e993549046daa47d7ad423ac8d4c2db46a0.zip
Initial support for Wanderer and Minstrel, and a few adjustments here and there for other classes.
- credits to 3ceam for the base. - should you step by any bugs let us know, http://rathena.org/board/tracker git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15616 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 1853b9cf1..d15c45b63 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2165,6 +2165,22 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
case SR_RIDEINLIGHTNING:
skillratio += 200 * skill_lv -100;
break;
+ case WM_REVERBERATION_MELEE:
+ skillratio += 200 + 100 * pc_checkskill(sd, WM_REVERBERATION);
+ break;
+ case WM_SEVERE_RAINSTORM_MELEE:
+ skillratio = 50 + 50 * skill_lv;
+ break;
+ case WM_GREAT_ECHO:
+ skillratio += 800 + 100 * skill_lv;
+ if( sd ) { // Still need official value [pakpil]
+ short lv = (short)skill_lv;
+ skillratio += 100 * skill_check_pc_partner(sd,skill_num,&lv,skill_get_splash(skill_num,skill_lv),0);
+ }
+ break;
+ case WM_SOUND_OF_DESTRUCTION:
+ skillratio += 400;
+ break;
}
ATK_RATE(skillratio);
@@ -4265,14 +4281,16 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
case MS_MAGNUM:
case RA_DETONATOR:
case RA_SENSITIVEKEEN:
+ case GN_CRAZYWEED:
state |= BCT_ENEMY;
strip_enemy = 0;
break;
default:
return 0;
}
- } else if (su->group->skill_id==WZ_ICEWALL)
- {
+ } else if (su->group->skill_id==WZ_ICEWALL ||
+ su->group->skill_id == GN_WALLOFTHORN ||
+ su->group->skill_id == WM_REVERBERATION) {
state |= BCT_ENEMY;
strip_enemy = 0;
} else //Excepting traps and icewall, you should not be able to target skills.