summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-12 16:00:59 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-12 16:00:59 +0000
commita6df334cad1846131050e71fdee61c72b0450ef0 (patch)
treeaa45dac1d9a499b7d4bec9ec134f6450a7b45de1 /src/map/skill.c
parentac2549281f46ecf8cb1c6ced0cd6551d42a1c84b (diff)
downloadhercules-a6df334cad1846131050e71fdee61c72b0450ef0.tar.gz
hercules-a6df334cad1846131050e71fdee61c72b0450ef0.tar.bz2
hercules-a6df334cad1846131050e71fdee61c72b0450ef0.tar.xz
hercules-a6df334cad1846131050e71fdee61c72b0450ef0.zip
- Oops, little error on previous commit.
- And cleaned a bit the mob use skill code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10236 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index b2dfd3abd..72a100e5d 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5678,6 +5678,8 @@ int skill_castend_id (int tid, unsigned int tick, int id, int data)
inf = BCT_ENEMY; //Offensive skill.
else if(inf2&INF2_NO_ENEMY)
inf = BCT_NOENEMY;
+ else
+ inf =0;
if(inf2 & (INF2_PARTY_ONLY|INF2_GUILD_ONLY) && src != target)
{