summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-19 20:27:05 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-19 20:27:05 +0000
commit64a8dee22964db611964a5c01d3c0b7efe335121 (patch)
tree02601cf3e30c402a28429734dfc3a3af23b3d90e /src/map/skill.c
parentd41f7e18f02012ef61df70ee6cc0f3bf1ce14c23 (diff)
downloadhercules-64a8dee22964db611964a5c01d3c0b7efe335121.tar.gz
hercules-64a8dee22964db611964a5c01d3c0b7efe335121.tar.bz2
hercules-64a8dee22964db611964a5c01d3c0b7efe335121.tar.xz
hercules-64a8dee22964db611964a5c01d3c0b7efe335121.zip
- Fixed the inf code update breakage which was blocking all offensive skills.
- Added battle setting homun_critical_rate (defaults to 0) - Removed enemy_str/pet_str/enemy_perfect_flee and replaced them with - enable_perfect_flee which specifies which objects can have perfect flee and enable_baseatk which specifies which objects can have a base attack value (both in battle.conf) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7752 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 837c5e6a3..86a94a89d 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5812,10 +5812,9 @@ int skill_castend_id (int tid, unsigned int tick, int id, int data)
inf = skill_get_inf(ud->skillid);
inf2 = skill_get_inf2(ud->skillid);
- if((inf&INF_ATTACK_SKILL ||
+ if(inf&INF_ATTACK_SKILL ||
(inf&INF_SELF_SKILL && inf2&INF2_NO_TARGET_SELF)) //Combo skills
- )
- inf = INF_ATTACK_SKILL; //Offensive skill.
+ inf = BCT_ENEMY; //Offensive skill.
else
inf = 0;
@@ -5824,6 +5823,7 @@ int skill_castend_id (int tid, unsigned int tick, int id, int data)
(inf2&INF2_PARTY_ONLY?BCT_PARTY:0)|
(inf2&INF2_GUILD_ONLY?BCT_GUILD:0)|
(inf2&INF2_ALLOW_ENEMY?BCT_ENEMY:0);
+
if (inf && battle_check_target(src, target, inf) <= 0)
break;
}