diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-05-02 05:09:53 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-05-02 16:51:04 +0200 |
commit | ad5506fb804ded1435390707c52f6c040aee3a49 (patch) | |
tree | bbacaa73ea936bf0bba9b51544a8f4557c1f2e7f /src | |
parent | 49988ac53690a0194d111a57603db68941ae3558 (diff) | |
download | hercules-ad5506fb804ded1435390707c52f6c040aee3a49.tar.gz hercules-ad5506fb804ded1435390707c52f6c040aee3a49.tar.bz2 hercules-ad5506fb804ded1435390707c52f6c040aee3a49.tar.xz hercules-ad5506fb804ded1435390707c52f6c040aee3a49.zip |
Implement SC_RESIST_PROPERTY_WIND logic
Diffstat (limited to 'src')
-rw-r--r-- | src/map/status.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 41805b1e2..72c382496 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -868,6 +868,7 @@ static void initChangeTables(void) status->dbs->ChangeFlagTable[SC_RESIST_PROPERTY_WATER] |= SCB_ALL; status->dbs->ChangeFlagTable[SC_RESIST_PROPERTY_GROUND] |= SCB_ALL; status->dbs->ChangeFlagTable[SC_RESIST_PROPERTY_FIRE] |= SCB_ALL; + status->dbs->ChangeFlagTable[SC_RESIST_PROPERTY_WIND] |= SCB_ALL; status->dbs->ChangeFlagTable[SC_ATKER_BLOOD] |= SCB_ALL; status->dbs->ChangeFlagTable[SC_WALKSPEED] |= SCB_SPEED; status->dbs->ChangeFlagTable[SC_TARGET_BLOOD] |= SCB_ALL; @@ -3044,6 +3045,10 @@ static int status_calc_pc_(struct map_session_data *sd, enum e_status_calc_opt o sd->subele[ELE_FIRE] += sc->data[SC_RESIST_PROPERTY_FIRE]->val1; sd->subele[ELE_WATER] += sc->data[SC_RESIST_PROPERTY_FIRE]->val2; } + if (sc->data[SC_RESIST_PROPERTY_WIND] != NULL) { // Thunderproof Potion + sd->subele[ELE_WIND] += sc->data[SC_RESIST_PROPERTY_WIND]->val1; + sd->subele[ELE_EARTH] += sc->data[SC_RESIST_PROPERTY_WIND]->val2; + } if (sc->data[SC_FIRE_CLOAK_OPTION]) { i = sc->data[SC_FIRE_CLOAK_OPTION]->val2; sd->subele[ELE_FIRE] += i; @@ -7771,6 +7776,7 @@ static int status_change_start_sub(struct block_list *src, struct block_list *bl case SC_RESIST_PROPERTY_WATER: case SC_RESIST_PROPERTY_GROUND: case SC_RESIST_PROPERTY_FIRE: + case SC_RESIST_PROPERTY_WIND: break; case SC_GOSPEL: //Must not override a casting gospel char. @@ -8746,6 +8752,7 @@ static int status_change_start_sub(struct block_list *src, struct block_list *bl case SC_RESIST_PROPERTY_WATER: case SC_RESIST_PROPERTY_GROUND: case SC_RESIST_PROPERTY_FIRE: + case SC_RESIST_PROPERTY_WIND: if (val1 <= 0) flag |= SCFLAG_NOICON; |