diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-09-17 10:35:40 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-09-17 10:35:40 +0000 |
commit | 078f38629dfd8642e15c7209c68d9bb91cbd4429 (patch) | |
tree | 245d25f4ae91c3910a65d4451674e384ac484a57 /src/map/status.c | |
parent | 5140b06dfa8554077fb9a698d2bf9c280b0954a4 (diff) | |
download | hercules-078f38629dfd8642e15c7209c68d9bb91cbd4429.tar.gz hercules-078f38629dfd8642e15c7209c68d9bb91cbd4429.tar.bz2 hercules-078f38629dfd8642e15c7209c68d9bb91cbd4429.tar.xz hercules-078f38629dfd8642e15c7209c68d9bb91cbd4429.zip |
* Duration of SC_STONE is not reduced by MDEF.
* LexAeterna is allowed to be used on petrifying targets.
* Mobs won't attack back if StoneCurse fails.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14064 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index 7479b726c..1d77afacd 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4627,7 +4627,8 @@ int status_get_sc_def(struct block_list *bl, enum sc_type type, int rate, int ti } //When no tick def, reduction is the same for both. - if (!tick_def) tick_def = sc_def; + if( !tick_def && type != SC_STONE ) //Recent tests show duration of petrify isn't reduced by MDEF. [Inkfish] + tick_def = sc_def; //Natural resistance if (!(flag&8)) { @@ -4732,7 +4733,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val return 0; break; case SC_AETERNA: - if (sc->data[SC_STONE] || sc->data[SC_FREEZE]) + if( (sc->data[SC_STONE] && sc->opt1 == OPT1_STONE) || sc->data[SC_FREEZE] ) return 0; break; case SC_KYRIE: |