summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 19:32:06 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 19:32:06 +0000
commit970bd320f2518e75c9aaa5c890ecc123b9dfb598 (patch)
tree6b29d42ca7119acd47a9c3b70e268b30ef73980a /src/map/battle.c
parentac78820fe4525d5df2ef1c62c43afa2e305aff70 (diff)
downloadhercules-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/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 484c65b01..ad59a9685 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -198,11 +198,11 @@ int battle_attr_fix(struct block_list *src, struct block_list *target, int damag
ratio = attr_fix_table[def_lv-1][atk_elem][def_type];
if (sc && sc->count)
{
- if(sc->data[SC_VOLCANO].timer!=-1 && atk_elem == 3)
+ if(sc->data[SC_VOLCANO].timer!=-1 && atk_elem == ELE_FIRE)
ratio += enchant_eff[sc->data[SC_VOLCANO].val1-1];
- if(sc->data[SC_VIOLENTGALE].timer!=-1 && atk_elem == 4)
+ if(sc->data[SC_VIOLENTGALE].timer!=-1 && atk_elem == ELE_WIND)
ratio += enchant_eff[sc->data[SC_VIOLENTGALE].val1-1];
- if(sc->data[SC_DELUGE].timer!=-1 && atk_elem == 1)
+ if(sc->data[SC_DELUGE].timer!=-1 && atk_elem == ELE_WATER)
ratio += enchant_eff[sc->data[SC_DELUGE].val1-1];
}
if (tsc && tsc->count)