diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-21 19:32:06 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-21 19:32:06 +0000 |
commit | 970bd320f2518e75c9aaa5c890ecc123b9dfb598 (patch) | |
tree | 6b29d42ca7119acd47a9c3b70e268b30ef73980a /src/map/skill.c | |
parent | ac78820fe4525d5df2ef1c62c43afa2e305aff70 (diff) | |
download | hercules-970bd320f2518e75c9aaa5c890ecc123b9dfb598.tar.gz hercules-970bd320f2518e75c9aaa5c890ecc123b9dfb598.tar.bz2 hercules-970bd320f2518e75c9aaa5c890ecc123b9dfb598.tar.xz hercules-970bd320f2518e75c9aaa5c890ecc123b9dfb598.zip |
- Added the necessary checks so that Suiton makes Fogwall have double duration, and to make water-requiring skills to consume their cells.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7813 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 45eebf558..9e8d6add8 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2434,6 +2434,8 @@ int skill_count_water (struct block_list *src, int range) continue; } unit = map_find_skill_unit_oncell(src,x,y,SA_DELUGE,NULL); + if (!unit) + unit = map_find_skill_unit_oncell(src,x,y,NJ_SUITON,NULL); if (unit) { cnt++; skill_delunit(unit); @@ -6717,8 +6719,10 @@ struct skill_unit_group *skill_unitsetting (struct block_list *src, int skillid, val1 = 55 + skilllv*5; //Elemental Resistance val2 = skilllv*10; //Status ailment resistance break; - case PF_FOGWALL: /* フォグウォール */ - if(sc && sc->data[SC_DELUGE].timer!=-1) limit *= 2; + case PF_FOGWALL: + if(sc && ( + sc->data[SC_DELUGE].timer!=-1 || sc->data[SC_SUITON].timer != -1 + )) limit *= 2; break; case RG_GRAFFITI: /* Graffiti */ count=1; // Leave this at 1 [Valaris] |