diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-01-14 22:04:20 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-01-14 22:04:20 +0000 |
commit | 178e1269471a35507a1965fdb1548f052312a6a3 (patch) | |
tree | 1920d8230cd6a54bf04fb96d49cb3d70143139ce /src/map/status.c | |
parent | 457cff865b0aa35bef85d8440ddf67c95158aa8b (diff) | |
download | hercules-178e1269471a35507a1965fdb1548f052312a6a3.tar.gz hercules-178e1269471a35507a1965fdb1548f052312a6a3.tar.bz2 hercules-178e1269471a35507a1965fdb1548f052312a6a3.tar.xz hercules-178e1269471a35507a1965fdb1548f052312a6a3.zip |
* Removed unconditional redundant status change checks before status_change_end calls (follow up to r12890).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14671 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c index 21bc9bf92..45fe3a4cf 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5001,8 +5001,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val //TO-DO Blessing and Agi up should do 1 damage against players on Undead Status, even on PvM //but cannot be plagiarized (this requires aegis investigation on packets and official behavior) [Brainstorm] if ((!undead_flag && status->race!=RC_DEMON) || bl->type == BL_PC) { - if (sc->data[SC_CURSE]) - status_change_end(bl, SC_CURSE, INVALID_TIMER); + status_change_end(bl, SC_CURSE, INVALID_TIMER); if (sc->data[SC_STONE] && sc->opt1 == OPT1_STONE) status_change_end(bl, SC_STONE, INVALID_TIMER); } @@ -7395,8 +7394,7 @@ int status_change_clear_buffs (struct block_list* bl, int type) if (type&2) //Debuffs for( i = SC_COMMON_MIN; i <= SC_COMMON_MAX; i++ ) { - if(sc->data[i]) - status_change_end(bl, (sc_type)i, INVALID_TIMER); + status_change_end(bl, (sc_type)i, INVALID_TIMER); } for( i = SC_COMMON_MAX+1; i < SC_MAX; i++ ) |