summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-23 17:22:46 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-23 17:22:46 +0000
commitc8458e5001e697c29fcf55d2a55337df5db2e1da (patch)
treea1ee84f3966825c56df38567edd0d88ca03161fd
parentd3ee2f6695aa3197ebba9df12aaf5a3a6e1859f3 (diff)
downloadhercules-c8458e5001e697c29fcf55d2a55337df5db2e1da.tar.gz
hercules-c8458e5001e697c29fcf55d2a55337df5db2e1da.tar.bz2
hercules-c8458e5001e697c29fcf55d2a55337df5db2e1da.tar.xz
hercules-c8458e5001e697c29fcf55d2a55337df5db2e1da.zip
SC_ARMOR_ELEMENT looks like gone away from status_change_start since ... rev 6791. Try to reimplement it.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8456 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/status.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 8876eded1..667876d20 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/08/23
+ * SC_ARMOR_ELEMENT looks like gone away from status_change_start since ... rev 6791.
+ Try to reimplement it. [Toms]
* Fixed HVAN_EXPLOSION [Skotlex]
* Frost Nova won't display a nodamage skill packet (still need to sort out
a way to fix the splash damaged packets) [Skotlex]
diff --git a/src/map/status.c b/src/map/status.c
index eb462b19c..f4fcf32a2 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4745,6 +4745,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
case SC_ATKPOTION:
case SC_MATKPOTION:
case SC_JAILED:
+ case SC_ARMOR_ELEMENT: // Just delete the current one
break;
case SC_GOSPEL:
//Must not override a casting gospel char.
@@ -5539,6 +5540,9 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
val3= status->max_sp; //Base Max SP
}
break;
+ case SC_ARMOR_ELEMENT:
+ break; // It just change the armor element of the player (used by battle_attr_fix)
+ // So it has no SCB and no skill associated (used by potion scripts)
default:
if (calc_flag == SCB_NONE && StatusSkillChangeTable[type]==0)
{ //Status change with no calc, and no skill associated...? unknown?