summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-27 03:49:08 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-27 03:49:08 +0000
commit861ecd7929441a24b63262c902d65886fc7654ff (patch)
tree2b54b04bf28bad18f48a2b8fe080f0b53bf0cfaf /src/map/status.c
parent7d4f027077dd34c49ec7d8b90c3981126068ec67 (diff)
downloadhercules-861ecd7929441a24b63262c902d65886fc7654ff.tar.gz
hercules-861ecd7929441a24b63262c902d65886fc7654ff.tar.bz2
hercules-861ecd7929441a24b63262c902d65886fc7654ff.tar.xz
hercules-861ecd7929441a24b63262c902d65886fc7654ff.zip
- Corrected the element of hunter traps.
- Deadly Poison now also reduces def2 by 25% - Changed skill_setmapcell to use skill splash rather than range. - Cleaned up a bit skill_moonlit, now it knocks back the correct amount of cells. - Fixed @mi displaying always 0 instead of the mob's class. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7351 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 9fa7982d5..08aeb291a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -116,7 +116,7 @@ void initChangeTables(void) {
// StatusChangeFlagTable[SC_CONFUSION] = SCB_NONE;
StatusChangeFlagTable[SC_BLIND] = SCB_HIT|SCB_FLEE;
// StatusChangeFlagTable[SC_BLEEDING] = SCB_NONE;
-// StatusChangeFlagTable[SC_DPOISON] = SCB_NONE;
+ StatusChangeFlagTable[SC_DPOISON] = SCB_DEF2;
//The icons for the common ailments
// StatusIconChangeTable[SC_STONE] = SI_BLANK;
@@ -3156,6 +3156,8 @@ static signed short status_calc_def2(struct block_list *bl, struct status_change
def2 -= def2 * sc->data[SC_CONCENTRATION].val4/100;
if(sc->data[SC_POISON].timer!=-1)
def2 -= def2 * 25/100;
+ if(sc->data[SC_DPOISON].timer!=-1)
+ def2 -= def2 * 25/100;
if(sc->data[SC_SKE].timer!=-1)
def2 -= def2 * 50/100;
if(sc->data[SC_PROVOKE].timer!=-1)