Issue information

Issue ID
#2842
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 8, 2009 4:49
Last Post
Hercules Elf Bot
Apr 4, 2012 8:52
Confirmation
N/A

Hercules Elf Bot - Mar 8, 2009 4:49

Originally posted by [b]RoM[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2842

Not really a bug, but just a missing status, as we have INCDEFRATE, we have INCDEF, but we have INCMDEFRATE and don't have INCMDEF. I needed it for a item bonus from bRO (Tao Gunka Scroll).

Changeset that I've for Cronus:
CODE
Index: status.c
===================================================================
--- status.c    (revision 2612)
+++ status.c    (working copy)
@@ -507,6 +507,7 @@
    StatusChangeFlagTable[SC_INCCRI] |= SCB_CRI;
    StatusChangeFlagTable[SC_INCFLEE2] |= SCB_FLEE2;
    StatusChangeFlagTable[SC_INCDEF] |= SCB_DEF;
+    StatusChangeFlagTable[SC_INCMDEF] |= SCB_MDEF;
    StatusChangeFlagTable[SC_INCMHPRATE] |= SCB_MAXHP;
    StatusChangeFlagTable[SC_INCMSPRATE] |= SCB_MAXSP;
    StatusChangeFlagTable[SC_INCASPDRATE] |= SCB_ASPD;
@@ -3761,6 +3762,8 @@
        return 100;
    if(sc->data[SC_STEELBODY])
        return 90;
+    if(sc->data[SC_INCMDEF])
+        mdef += sc->data[SC_INCMDEF]->val1;
    if(sc->data[SC_SKA])
        return 90;
    if(sc->data[SC_ARMORCHANGE])
Index: status.h
===================================================================
--- status.h    (revision 2612)
+++ status.h    (working copy)
@@ -310,6 +310,8 @@
    SC_HPDRAIN,
    SC_SKILLATKBONUS,

+    SC_INCMDEF, // [RoM]
+
    SC_MAX, //Automatically updated max, used in for's to check we are within bounds.
} sc_type;
And add this to const.txt:
CODE
SC_INCMDEF    289


This post has been edited by rvitoi: Mar 7 2009, 08:51 PM

Hercules Elf Bot - Dec 9, 2011 5:07

Originally posted by [b]Ind[/b]
was fixed long ago.