summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPlaytester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-06 09:11:48 +0000
committerPlaytester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-06 09:11:48 +0000
commit9b0f6db206ac0d5b9e905831050402c3ffed064c (patch)
tree6eb3601ebca09088d3c9b3f52afdac1ea92819b1
parent80120eb5d9f0783628889c450ee8940da47cee6a (diff)
downloadhercules-9b0f6db206ac0d5b9e905831050402c3ffed064c.tar.gz
hercules-9b0f6db206ac0d5b9e905831050402c3ffed064c.tar.bz2
hercules-9b0f6db206ac0d5b9e905831050402c3ffed064c.tar.xz
hercules-9b0f6db206ac0d5b9e905831050402c3ffed064c.zip
* Fixed Converters not overwriting each other
- thanks to scerez for the fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10490 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--src/map/skill.c2
-rw-r--r--src/map/status.c1
3 files changed, 6 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index c60aa2a20..1749f1c30 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,9 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2007/05/07
+ * Fixed Converters not overwriting each other [Playtester]
+ - thanks to scerez for the fix
2007/05/06
* Removed the dependency on winsock.h for definitions, it's all winsock2.h now.
* Minor documentation/re-coding in chat.c.
diff --git a/src/map/skill.c b/src/map/skill.c
index 813018852..7f0959f2f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9683,6 +9683,8 @@ int skill_enchant_elemental_end (struct block_list *bl, int type)
status_change_end(bl, SC_SHADOWWEAPON, -1);
if (type != SC_GHOSTWEAPON && sc->data[SC_GHOSTWEAPON].timer != -1)
status_change_end(bl, SC_GHOSTWEAPON, -1);
+ if (type != SC_ENCHANTARMS && sc->data[SC_ENCHANTARMS].timer != -1)
+ status_change_end(bl, SC_ENCHANTARMS, -1);
return 0;
}
diff --git a/src/map/status.c b/src/map/status.c
index c968fd58e..af86c8951 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5755,6 +5755,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
val2 = val2%ELE_MAX;
else if (val2 < 0)
val2 = rand()%ELE_MAX;
+ skill_enchant_elemental_end(bl,type);
break;
case SC_ARMOR_ELEMENT:
//Place here SCs that have no SCB_* data, no skill associated, no ICON