From 6bbe78a5518deb3a0bd8b8227066f8fdba7f6e0d Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Mon, 9 Mar 2020 19:38:36 +0100 Subject: Add SC_SKF_MATK status change --- src/map/status.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index b0fef0b2e..aaf295222 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -886,6 +886,7 @@ static void initChangeTables(void) status->dbs->ChangeFlagTable[SC_MYSTICPOWDER] |= SCB_FLEE | SCB_LUK; status->dbs->ChangeFlagTable[SC_POPECOOKIE] |= SCB_BASE | SCB_BATK | SCB_MATK; status->dbs->ChangeFlagTable[SC_VITALIZE_POTION] |= SCB_BATK | SCB_MATK; + status->dbs->ChangeFlagTable[SC_SKF_MATK] |= SCB_MATK; // Cash Items status->dbs->ChangeFlagTable[SC_FOOD_STR_CASH] |= SCB_STR; @@ -5099,6 +5100,8 @@ static int status_calc_matk(struct block_list *bl, struct status_change *sc, int matk += matk * sc->data[SC_2011RWC]->val2 / 100; if (sc->data[SC_MAGIC_CANDY]) matk += sc->data[SC_MAGIC_CANDY]->val1; + if (sc->data[SC_SKF_MATK] != NULL) + matk += sc->data[SC_SKF_MATK]->val1; return cap_value(matk, battle_config.matk_min, battle_config.matk_max); } -- cgit v1.2.3-70-g09d2