From 77b02c49796f442a3ea87bb5bab1b568a4d80a29 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 25 Sep 2007 18:32:08 +0000 Subject: - Modified a bit the hard/lazy ai triggers to match aegis: - Mobs go into active AI when they are 2 cells from entering a player's view (ACTIVE_AI_RANGE) - Mobs in passive AI no longer use skills. - Mobs in passive AI do not random walk UNLESS they have entered active AI before (random walk frequency is not lost during passive AI). - Added an additional check to prevent support skills from being blocked if the target has an armor element that blocks it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11294 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index 50df5e138..6343f98d6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -3485,6 +3485,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in if (src!=bl && type > -1 && (i = skill_get_pl(skillid, skilllv)) > ELE_NEUTRAL && + skill_get_inf(skillid) != INF_SUPPORT_SKILL && battle_attr_fix(NULL, NULL, 100, i, tstatus->def_ele, tstatus->ele_lv) <= 0) return 1; //Skills that cause an status should be blocked if the target element blocks its element. -- cgit v1.2.3-60-g2f50