summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-19 14:42:52 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-19 14:42:52 +0000
commit923710723574716b15bc2e5f116b2741c5b9b6bd (patch)
tree42408d5606552b7a7f93359bc9392d27a9af439d /src/map/skill.c
parent5333c3d2c92c21b0ffc709acae24e32129cd8aec (diff)
downloadhercules-923710723574716b15bc2e5f116b2741c5b9b6bd.tar.gz
hercules-923710723574716b15bc2e5f116b2741c5b9b6bd.tar.bz2
hercules-923710723574716b15bc2e5f116b2741c5b9b6bd.tar.xz
hercules-923710723574716b15bc2e5f116b2741c5b9b6bd.zip
- Corrected number of water-ball hits when used by mobs and not consuming deluge cells when using lv1 (Thanks to Kyoki).
- cardillust_read_grffile, item_equip_override_grffile, item_slots_override_grffile, and item_name_override_grffile are set to 0 after map-server loads to prevent crashes on item_db reloading. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6656 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 39ab93ad2..a8839bfd9 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2826,14 +2826,20 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl,int s
skill_attack(BF_MAGIC,src,src,bl,skillid,skilllv,tick,flag);
if (skilllv>1) {
int range = skilllv/2;
- //Rain doesn't affect WATERBALL (Rain has been removed at kRO) [Lupus]
- //int cnt = (!map[src->m].flag.rain) ? skill_count_water(src,range) - 1 : skill_get_num(skillid,skilllv) - 1;
- int cnt = (src->type==BL_PC)?skill_count_water(src,range):++range*range;
+ int cnt;
+ if (sd)
+ cnt = skill_count_water(src,range);
+ else {
+ range = 2*range+1;
+ cnt = range*range;
+ }
cnt--;
if (cnt > 0)
skill_addtimerskill(src,tick+150,bl->id,0,0,
skillid,skilllv,cnt,flag);
- }
+ } else if (sd) //Eat up deluge tiles.
+ skill_count_water(src,0);
+
break;
case PR_BENEDICTIO: /* ?¹??~•Ÿ */