summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-31 18:20:31 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-31 18:20:31 +0000
commit20ed71cc6035d360d8119b028d2fa24d397033bf (patch)
tree7ccb3806f00015eef4f0d429ca36e1ecb569fce9 /src/map/status.c
parent9c43f344ffa5fa92d9fe2ed2114eee4394cabfb0 (diff)
downloadhercules-20ed71cc6035d360d8119b028d2fa24d397033bf.tar.gz
hercules-20ed71cc6035d360d8119b028d2fa24d397033bf.tar.bz2
hercules-20ed71cc6035d360d8119b028d2fa24d397033bf.tar.xz
hercules-20ed71cc6035d360d8119b028d2fa24d397033bf.zip
Fixed Eddga Card, it should give 1 MDEF (instead of 0) according to recent tests on official servers, bugreport:1538
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15337 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 9a70ae470..09f2c8dca 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4212,8 +4212,8 @@ static signed short status_calc_def2(struct block_list *bl, struct status_change
mdef += 25*mdef/100;
if(sc->data[SC_FREEZE])
mdef += 25*mdef/100;
- if(sc->data[SC_ENDURE] && sc->data[SC_ENDURE]->val4 == 0)
- mdef += sc->data[SC_ENDURE]->val1;
+ if(sc->data[SC_ENDURE])// It has been confirmed that eddga card grants 1 MDEF, not 0, not 10, but 1.
+ mdef += (sc->data[SC_ENDURE]->val4 == 0) ? sc->data[SC_ENDURE]->val1 : 1;
if(sc->data[SC_CONCENTRATION])
mdef += 1; //Skill info says it adds a fixed 1 Mdef point.
if( sc->data[SC_MARSHOFABYSS] )