diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-11 01:25:40 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-11 01:25:40 +0000 |
commit | 9684bc0bf1ced9df4c7885c767ba25142c075018 (patch) | |
tree | 735657eec6f6822010e9e9aacdac5ef5f896f007 /src/map/status.c | |
parent | 1da444ee4f4c92bc69c9e2e897e0bf4674e52bc8 (diff) | |
download | hercules-9684bc0bf1ced9df4c7885c767ba25142c075018.tar.gz hercules-9684bc0bf1ced9df4c7885c767ba25142c075018.tar.bz2 hercules-9684bc0bf1ced9df4c7885c767ba25142c075018.tar.xz hercules-9684bc0bf1ced9df4c7885c767ba25142c075018.zip |
- Fixed the item group bonus not working.
- Removed unnecessary member id from the item group structure.
- Fixed songs/dances always being considered overlapped with themselves.
- Added some additional song/dance overlap code that should correctly change the effect of songs/dances when they overlap.
- Added a check so that the status-change packet is always send to self when the inflicted char is a player disguised.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8242 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 726691383..f3b0f46c5 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5578,6 +5578,9 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val if (vd && pcdb_checkid(vd->class_)) //Only for players sprites, client crashes if they receive this for a mob o.O [Skotlex] clif_status_change(bl,StatusIconChangeTable[type],1); + else if (sd) //Send packet to self otherwise (disguised player?) + clif_status_load(bl,StatusIconChangeTable[type],1); + (sc->count)++; sc->data[type].val1 = val1; @@ -6062,6 +6065,8 @@ int status_change_end( struct block_list* bl , int type,int tid ) //On Aegis, when turning off a status change, first goes the sc packet, then the option packet. if (vd && pcdb_checkid(vd->class_)) clif_status_change(bl,StatusIconChangeTable[type],0); + else if (sd) + clif_status_load(bl,StatusIconChangeTable[type],0); if(opt_flag) clif_changeoption(bl); |