diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-09 21:37:31 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-14 19:50:29 +0100 |
commit | 05aee41c44ba89bb35e233815b62d6dcefc0899c (patch) | |
tree | 90d254c4176a58a9c2f38edcd153718b35527923 /src/map/status.c | |
parent | 2c26eec424e0d4f614c7ff73ad2c5402da669338 (diff) | |
download | hercules-05aee41c44ba89bb35e233815b62d6dcefc0899c.tar.gz hercules-05aee41c44ba89bb35e233815b62d6dcefc0899c.tar.bz2 hercules-05aee41c44ba89bb35e233815b62d6dcefc0899c.tar.xz hercules-05aee41c44ba89bb35e233815b62d6dcefc0899c.zip |
Add SC_ALMIGHTY status change
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 a55ad071e..691aabd30 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -890,6 +890,7 @@ static void initChangeTables(void) status->dbs->ChangeFlagTable[SC_SKF_ATK] |= SCB_BATK; status->dbs->ChangeFlagTable[SC_SKF_ASPD] |= SCB_ASPD; status->dbs->ChangeFlagTable[SC_SKF_CAST] |= SCB_NONE; + status->dbs->ChangeFlagTable[SC_ALMIGHTY] |= SCB_BATK | SCB_MATK; // Cash Items status->dbs->ChangeFlagTable[SC_FOOD_STR_CASH] |= SCB_STR; @@ -4904,6 +4905,8 @@ static int status_calc_batk(struct block_list *bl, struct status_change *sc, int batk += sc->data[SC_STEAMPACK]->val1; if (sc->data[SC_SKF_ATK] != NULL) batk += sc->data[SC_SKF_ATK]->val1; + if (sc->data[SC_ALMIGHTY] != NULL) + batk += sc->data[SC_ALMIGHTY]->val1; if (sc->data[SC_SHRIMP]) batk += batk * sc->data[SC_SHRIMP]->val2 / 100; @@ -5107,6 +5110,8 @@ static int status_calc_matk(struct block_list *bl, struct status_change *sc, int matk += sc->data[SC_MAGIC_CANDY]->val1; if (sc->data[SC_SKF_MATK] != NULL) matk += sc->data[SC_SKF_MATK]->val1; + if (sc->data[SC_ALMIGHTY] != NULL) + matk += sc->data[SC_ALMIGHTY]->val2; return cap_value(matk, battle_config.matk_min, battle_config.matk_max); } |