summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-03 23:27:22 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-03 23:27:22 +0000
commit58a49148ed8667e49214d4814fe771e7cceec427 (patch)
tree6542200adf9c37566b39efb3c86d4b25715c5593 /src/map/status.c
parentd3e6e368ac40c44fb13978a7529f8f818cdc0731 (diff)
downloadhercules-58a49148ed8667e49214d4814fe771e7cceec427.tar.gz
hercules-58a49148ed8667e49214d4814fe771e7cceec427.tar.bz2
hercules-58a49148ed8667e49214d4814fe771e7cceec427.tar.xz
hercules-58a49148ed8667e49214d4814fe771e7cceec427.zip
Changes to reduce the number of map cell types
- Pneuma now again works via status change (see r3969) - removed unused CELL_SAFETYWALL - removed custom CELL_REGEN, it just increased regen rate (r1192, r1518) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12005 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index cf999e37f..85c17215d 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -153,6 +153,7 @@ void initChangeTables(void)
add_sc(MG_FROSTDIVER, SC_FREEZE);
add_sc(MG_STONECURSE, SC_STONE);
add_sc(AL_RUWACH, SC_RUWACH);
+ add_sc(AL_PNEUMA, SC_PNEUMA);
set_sc(AL_INCAGI, SC_INCREASEAGI, SI_INCREASEAGI, SCB_AGI|SCB_SPEED);
set_sc(AL_DECAGI, SC_DECREASEAGI, SI_DECREASEAGI, SCB_AGI|SCB_SPEED);
set_sc(AL_CRUCIS, SC_SIGNUMCRUCIS, SI_SIGNUMCRUCIS, SCB_DEF);
@@ -4597,7 +4598,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
if( bl->type == BL_MOB && ((TBL_MOB*)bl)->class_ == MOBID_EMPERIUM )
{
- if( type != SC_SAFETYWALL )
+ if( type != SC_SAFETYWALL && type != SC_PNEUMA )
return 0; //Emperium can't be afflicted by status changes
}
@@ -7060,6 +7061,7 @@ int status_change_clear_buffs (struct block_list* bl, int type)
case SC_DANCING:
case SC_GUILDAURA:
case SC_SAFETYWALL:
+ case SC_PNEUMA:
case SC_NOCHAT:
case SC_JAILED:
case SC_ANKLE:
@@ -7216,8 +7218,6 @@ static int status_natural_heal(DBKey key,void * data,va_list ap)
if(!vd) vd = status_get_viewdata(bl);
if(vd && vd->dead_sit == 2)
bonus++;
- if(map_getcell(bl->m,bl->x,bl->y,CELL_CHKREGEN))
- bonus++;
if(regen->state.gc)
bonus++;
}