summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-02-27 03:20:17 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-02-27 03:20:17 +0000
commit4353985f60c01d1145778a37d80c54d75d006637 (patch)
treeeb50ca0cb0111d694fe0337527c956dd12e146e0 /src/map
parent385d55c279e8d3dce294b04fca389dffb8782fd6 (diff)
downloadhercules-4353985f60c01d1145778a37d80c54d75d006637.tar.gz
hercules-4353985f60c01d1145778a37d80c54d75d006637.tar.bz2
hercules-4353985f60c01d1145778a37d80c54d75d006637.tar.xz
hercules-4353985f60c01d1145778a37d80c54d75d006637.zip
Fixed Poison Status killing monsters with low max hp(like plants).
Mental Strenth costs 200 sp instead of 50% max sp. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14252 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 16eec43c1..5c40712fa 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6953,7 +6953,7 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr data)
break;
case SC_POISON:
- if(status->hp <= status->max_hp>>2) //Stop damaging after 25% HP left.
+ if(status->hp <= max(status->max_hp>>2, sce->val4)) //Stop damaging after 25% HP left.
break;
case SC_DPOISON:
if (--(sce->val3) > 0) {