summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-25 18:32:08 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-25 18:32:08 +0000
commit77b02c49796f442a3ea87bb5bab1b568a4d80a29 (patch)
treeaf359d1fdb161b0ecd330946a2d52dc458f814c1 /src/map/skill.c
parentc92056c063c53cbee4f7004d064f075b3c96c33f (diff)
downloadhercules-77b02c49796f442a3ea87bb5bab1b568a4d80a29.tar.gz
hercules-77b02c49796f442a3ea87bb5bab1b568a4d80a29.tar.bz2
hercules-77b02c49796f442a3ea87bb5bab1b568a4d80a29.tar.xz
hercules-77b02c49796f442a3ea87bb5bab1b568a4d80a29.zip
- 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
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c1
1 files changed, 1 insertions, 0 deletions
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.