summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-31 16:37:16 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-31 16:37:16 +0000
commited3c7c94d75951a75cf19a313cb8eb27cb2ffac9 (patch)
tree3fb7faa7f6ae6691995587f1cd7a794b5e22e9b2 /src/map/status.c
parent63c083ffc7f186576d69158f6e1ff7f3c893d7b3 (diff)
downloadhercules-ed3c7c94d75951a75cf19a313cb8eb27cb2ffac9.tar.gz
hercules-ed3c7c94d75951a75cf19a313cb8eb27cb2ffac9.tar.bz2
hercules-ed3c7c94d75951a75cf19a313cb8eb27cb2ffac9.tar.xz
hercules-ed3c7c94d75951a75cf19a313cb8eb27cb2ffac9.zip
Commented out msg_athena.conf strings disabled in r11625.
Reverted changes in r11625 that used enum sc_type where it shouldn't have been used. Removed leftover npc/other/arena.txt. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11627 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 75c877140..6919a47bb 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6100,11 +6100,15 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
}
/*==========================================
* ステータス異常全解除
+ * type:
+ * 0 - ???
+ * 1 - ???
+ * 2 - ???
*------------------------------------------*/
-int status_change_clear(struct block_list* bl, enum sc_type type)
+int status_change_clear(struct block_list* bl, int type)
{
struct status_change* sc;
- int i;
+ enum sc_type i;
sc = status_get_sc(bl);
@@ -6118,9 +6122,10 @@ int status_change_clear(struct block_list* bl, enum sc_type type)
{
if(sc->data[i].timer == -1)
continue;
+
if(type == 0)
switch (i)
- { //Type 0: PC killed -> Place here stats that do not dispel on death.
+ { //Type 0: PC killed -> Place here statuses that do not dispel on death.
case SC_EDP:
case SC_MELTDOWN:
case SC_XMAS:
@@ -6136,6 +6141,7 @@ int status_change_clear(struct block_list* bl, enum sc_type type)
case SC_JAILED:
continue;
}
+
status_change_end(bl, i, INVALID_TIMER);
if( type == 1 && sc->data[i].timer != INVALID_TIMER )
@@ -6145,12 +6151,13 @@ int status_change_clear(struct block_list* bl, enum sc_type type)
sc->data[i].timer = -1;
}
}
+
sc->opt1 = 0;
sc->opt2 = 0;
sc->opt3 = 0;
sc->option &= OPTION_MASK;
- if(!type || type&2)
+ if( type == 0 || type == 2 )
clif_changeoption(bl);
return 1;
@@ -7025,9 +7032,9 @@ int status_change_timer_sub(struct block_list* bl, va_list ap)
* Clears buffs/debuffs of a character.
* type&1 -> buffs, type&2 -> debuffs
*------------------------------------------*/
-int status_change_clear_buffs (struct block_list* bl, enum sc_type type)
+int status_change_clear_buffs (struct block_list* bl, int type)
{
- int i;
+ enum sc_type i;
struct status_change *sc= status_get_sc(bl);
if (!sc || !sc->count)