diff options
author | Haru <haru@dotalux.com> | 2020-05-03 20:41:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 20:41:37 +0200 |
commit | 754ab3c4f1031ebe924477d20b51ed5b0e814fd4 (patch) | |
tree | 5d0ccbcda0dded754f3090225e2d55a7d2e17f3e /src/map/status.c | |
parent | f40cc839413cc82aed445d39cc3aa204dce87780 (diff) | |
parent | c4c55ca75a2f9f8390090e063f67b32c727416ed (diff) | |
download | hercules-754ab3c4f1031ebe924477d20b51ed5b0e814fd4.tar.gz hercules-754ab3c4f1031ebe924477d20b51ed5b0e814fd4.tar.bz2 hercules-754ab3c4f1031ebe924477d20b51ed5b0e814fd4.tar.xz hercules-754ab3c4f1031ebe924477d20b51ed5b0e814fd4.zip |
Merge pull request #2686 from Kenpachi2k13/unknown_sc_fix
Fix status changes falsely being recognized as unknown
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index d3e85e5be..d2d65ce37 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -696,6 +696,7 @@ static void initChangeTables(void) status->set_sc( WM_BEYOND_OF_WARCRY , SC_BEYOND_OF_WARCRY , SCB_STR|SCB_CRI|SCB_MAXHP ); status->set_sc( WM_UNLIMITED_HUMMING_VOICE, SC_UNLIMITED_HUMMING_VOICE, SCB_NONE ); status->set_sc( WM_FRIGG_SONG , SC_FRIGG_SONG , SCB_MAXHP ); + status->set_sc( WM_SEVERE_RAINSTORM , SC_NO_SWITCH_EQUIP , SCB_NONE ); /** * Sorcerer @@ -7808,6 +7809,9 @@ static int status_change_start_sub(struct block_list *src, struct block_list *bl calc_flag = status->dbs->ChangeFlagTable[type]; if(!(flag&SCFLAG_LOADED)) { // Do not parse val settings when loading SCs switch(type) { + case SC_AUTOTRADE: + case SC_KSPROTECTED: + break; // Prevent calling status_change_start_unknown_sc(). case SC_ADORAMUS: sc_start(src,bl,SC_BLIND,100,val1,skill->get_time(status->sc2skill(type),val1)); // Fall through to SC_INC_AGI |