From 4353985f60c01d1145778a37d80c54d75d006637 Mon Sep 17 00:00:00 2001 From: Inkfish Date: Sat, 27 Feb 2010 03:20:17 +0000 Subject: 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 --- src/map/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2