From b6054caba250ed1af333604fb483d51d28a7aa90 Mon Sep 17 00:00:00 2001 From: Fate Date: Sun, 27 Sep 2009 16:21:11 +0000 Subject: Added resist-poison skill that reduces the amount of time spent poisoned --- src/map/skill.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map') diff --git a/src/map/skill.c b/src/map/skill.c index 6cff936..5f0092a 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8029,6 +8029,10 @@ int skill_status_change_timer(int tid, unsigned int tick, int id, int data) break; case SC_POISON: if(sc_data[SC_SLOWPOISON].timer == -1) { + const int resist_poison = skill_power_bl(bl, TMW_RESIST_POISON) >> 3; + if (resist_poison) + sc_data[type].val1 -= MRAND(resist_poison + 1); + if( (--sc_data[type].val1) > 0) { int hp = battle_get_max_hp(bl); -- cgit v1.2.3-60-g2f50