diff options
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 5a372e7..70311e9 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3369,9 +3369,9 @@ int clif_damage(struct block_list *src,struct block_list *dst,unsigned int tick, type = 9; if(sc_data[SC_HALLUCINATION].timer != -1) { if(damage > 0) - damage = damage*(5+sc_data[SC_HALLUCINATION].val1) + rand()%100; + damage = damage*(5+sc_data[SC_HALLUCINATION].val1) + MRAND(100); if(damage2 > 0) - damage2 = damage2*(5+sc_data[SC_HALLUCINATION].val1) + rand()%100; + damage2 = damage2*(5+sc_data[SC_HALLUCINATION].val1) + MRAND(100); } } @@ -3881,7 +3881,7 @@ int clif_skill_damage(struct block_list *src,struct block_list *dst, if(type != 5 && sc_data[SC_ENDURE].timer != -1) type = 9; if(sc_data[SC_HALLUCINATION].timer != -1 && damage > 0) - damage = damage*(5+sc_data[SC_HALLUCINATION].val1) + rand()%100; + damage = damage*(5+sc_data[SC_HALLUCINATION].val1) + MRAND(100); } WBUFW(buf,0)=0x1de; @@ -3921,7 +3921,7 @@ int clif_skill_damage2(struct block_list *src,struct block_list *dst, if(type != 5 && sc_data[SC_ENDURE].timer != -1) type = 9; if(sc_data[SC_HALLUCINATION].timer != -1 && damage > 0) - damage = damage*(5+sc_data[SC_HALLUCINATION].val1) + rand()%100; + damage = damage*(5+sc_data[SC_HALLUCINATION].val1) + MRAND(100); } WBUFW(buf,0)=0x115; @@ -6506,7 +6506,7 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data *sd) { // S 008c < if (tmw_CheckChatSpam(sd, RFIFOP(fd,4))) return; - if ((malformed)||(pc_isdead(sd))) { + if (malformed) { free(buf); return; } |