summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2015-12-23 13:10:57 +0800
committerJedzkie <jedzkie13@rocketmail.com>2015-12-23 13:10:57 +0800
commit23b06569296e0f0f791f110df9723f27c60e65a3 (patch)
tree52c0593d47344a407f4cc52098cb6aed29e15226
parent9dc44927ccf5ae88a40e92be5c7c2146cdb5eb06 (diff)
downloadhercules-23b06569296e0f0f791f110df9723f27c60e65a3.tar.gz
hercules-23b06569296e0f0f791f110df9723f27c60e65a3.tar.bz2
hercules-23b06569296e0f0f791f110df9723f27c60e65a3.tar.xz
hercules-23b06569296e0f0f791f110df9723f27c60e65a3.zip
Item Updates:
- Fix Speed Up Potion and Guyak Pudding effect, only movement speed reduction will not affect when in Quagmire, Decrease AGI and Slow Grace state. (thanks to kyeme) - Follow up https://github.com/Jedzkie/Hercules/commit/9dc44927ccf5ae88a40e92be5c7c2146cdb5eb06 - Remove Yggdrasilberry and Yggdrasil Seed item re-use delay.
-rw-r--r--db/pre-re/item_db.conf4
-rw-r--r--src/map/status.c11
2 files changed, 6 insertions, 9 deletions
diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf
index 6bf556304..d5ccd7e97 100644
--- a/db/pre-re/item_db.conf
+++ b/db/pre-re/item_db.conf
@@ -1190,7 +1190,6 @@ item_db: (
Buy: 5000
Weight: 300
BuyingStore: true
- Delay: 5000
Script: <" percentheal 100,100; ">
},
{
@@ -1201,7 +1200,6 @@ item_db: (
Buy: 5000
Weight: 300
BuyingStore: true
- Delay: 3000
Script: <" percentheal 50,50; ">
},
{
@@ -74011,7 +74009,7 @@ item_db: (
Loc: 32768
EquipLv: 99
View: 9
- Script: <" sc_start4 SC_PROMOTE_HEALTH_RESERCH, 500000, 2 3, 2500, 5; ">
+ Script: <" sc_start4 SC_PROMOTE_HEALTH_RESERCH, 500000, 2, 3, 2500, 5; ">
},
{
Id: 13278
diff --git a/src/map/status.c b/src/map/status.c
index d721e7eb1..039315659 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5553,6 +5553,11 @@ unsigned short status_calc_speed(struct block_list *bl, struct status_change *sc
if( sc->data[SC_MARSHOFABYSS] ) // It stacks to other statuses so always put this at the end.
val = max( 50, val + 10 * sc->data[SC_MARSHOFABYSS]->val1 );
+ if (sc->data[SC_MOVHASTE_POTION]) { // Doesn't affect the movement speed by Quagmire, Decrease Agi, Slow Grace [Frost]
+ if (sc->data[SC_DEC_AGI] || sc->data[SC_QUAGMIRE] || sc->data[SC_DONTFORGETME])
+ return 0;
+ }
+
if( sd && sd->bonus.speed_rate + sd->bonus.speed_add_rate > 0 ) // permanent item-based speedup
val = max( val, sd->bonus.speed_rate + sd->bonus.speed_add_rate );
}
@@ -7225,12 +7230,6 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t
if (sc->data[SC_QUAGMIRE] || sc->data[SC_DEC_AGI])
return 0;
break;
- case SC_QUAGMIRE:
- case SC_DEC_AGI:
- case SC_DONTFORGETME:
- if (sc->data[SC_MOVHASTE_POTION]) // Doesn't affect by Quagmire, Decrease Agi, Slow Grace [Frost]
- return 0;
- break;
case SC_MAGNIFICAT:
if (sc->data[SC_OFFERTORIUM] || sc->option&OPTION_MADOGEAR) // Mado is immune to magnificat
return 0;