Fixes Poisoning Weapon icon display after relog (#5746)

* Fixes #5642.
* Poisoning Weapon effects should not show the icon on self after relogging.
Thanks to @eppc0330!
This commit is contained in:
Aleos 2021-02-17 13:34:08 -05:00 committed by GitHub
parent cbaef6d9a5
commit 0af4a9b40c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9512,6 +9512,8 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
case SC_PYREXIA:
case SC_OBLIVIONCURSE:
case SC_LEECHESEND:
if (val3 == 0) // Don't display icon on self
flag |= SCSTART_NOICON;
for (int32 i = SC_TOXIN; i <= SC_LEECHESEND; i++) {
if (sc->data[i] && sc->data[i]->val3 == 1) // It doesn't stack or even renew on the target
return 0;