diff options
author | Haru <haru@dotalux.com> | 2020-04-05 20:48:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-05 20:48:47 +0200 |
commit | 8004129df91789090e3612d89529857ca7e4db8b (patch) | |
tree | 9dffed9987514ecf216e833f10169ee4e3d967bf /src/map/pc.c | |
parent | 2ec19ccf9aad553de8e04ee463e820e70199e060 (diff) | |
parent | bee3cb9a077608e0e8f0096b8d7017b998ef5efd (diff) | |
download | hercules-8004129df91789090e3612d89529857ca7e4db8b.tar.gz hercules-8004129df91789090e3612d89529857ca7e4db8b.tar.bz2 hercules-8004129df91789090e3612d89529857ca7e4db8b.tar.xz hercules-8004129df91789090e3612d89529857ca7e4db8b.zip |
Merge pull request #2658 from Kenpachi2k13/new_status_changes
Add new status changes and update related items
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index c604e16dc..da53b2606 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -8809,6 +8809,10 @@ static int pc_itemheal(struct map_session_data *sd, int itemid, int hp, int sp) // 2014 Halloween Event : Pumpkin Bonus if ( sd->sc.data[SC_MTF_PUMPKIN] && itemid == ITEMID_PUMPKIN ) hp += (int)(hp * sd->sc.data[SC_MTF_PUMPKIN]->val1/100); + + // Activation Potion + if (sd->sc.data[SC_VITALIZE_POTION] != NULL) + hp += hp * sd->sc.data[SC_VITALIZE_POTION]->val3 / 100; } if(sp) { bonus = 100 + (sd->battle_status.int_<<1) |