From bcb283d696d5ec4d7b6a2dfd2ba52cf2a3011fb4 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Thu, 14 Feb 2008 01:18:19 +0000 Subject: - Added some new config settings: homunculus_autoloot, idle_no_autoloot, max_guild_alliance. - Added a code to activate a Kill Steal protection and the required mapflags. * (I will explain this later on forums). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12203 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 3ae4aa091..d0d06ff06 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -807,6 +807,8 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh if(skillnotok(skill_num, sd)) // [MouseJstr] return 0; + mob_ksprotected(src, map_id2bl(target_id)); + switch(skill_num) { //Check for skills that auto-select target case MO_CHAINCOMBO: -- cgit v1.2.3-70-g09d2