From 1f8acdc9e58cd5344427babe69539ba86fdda03d Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 8 Feb 2006 19:33:01 +0000 Subject: - Added battle config options: - skill_caster_check (does a status_checkskilluse on all skill attacks) - status_cast_cancel (invokes skill_castcancel for opt1 type status changes) - Fixed the death exp penalty underflow bug git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5229 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index b9fc9521d..6822c8327 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1543,7 +1543,10 @@ int skill_attack( int attack_type, struct block_list* src, struct block_list *ds if(src->prev == NULL || dsrc->prev == NULL || bl->prev == NULL) return 0; //When caster is not the src of attack, this is a ground skill, and as such, do the relevant target checking. [Skotlex] - if (src != dsrc && !status_check_skilluse(NULL, bl, skillid, 1)) + if ( + (src != dsrc || battle_config.skill_caster_check) && + !status_check_skilluse(battle_config.skill_caster_check?src:NULL, bl, skillid, 1) + ) return 0; //Note that splash attacks often only check versus the targetted mob, those around the splash area normally don't get checked for being hidden/cloaked/etc. [Skotlex] -- cgit v1.2.3-70-g09d2