summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-30 18:22:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-30 18:22:11 +0000
commit934764dba32c549859c0854ba74008a250be204a (patch)
tree45fd8a0e3ae2cc4a5d1b5f628e3633b08b68f4d9 /src/map/mob.c
parentbed9459f0edafeab823aa4c0a473828e77e43c15 (diff)
downloadhercules-934764dba32c549859c0854ba74008a250be204a.tar.gz
hercules-934764dba32c549859c0854ba74008a250be204a.tar.bz2
hercules-934764dba32c549859c0854ba74008a250be204a.tar.xz
hercules-934764dba32c549859c0854ba74008a250be204a.zip
- 'Long Range Attacked' mob skill conditions will no longer trigger on magic attacks.
- Changed the element of Blood Drain from 'take weapon's element' to Dark. And Blood Drain/Energy Drain have a range of 7 now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9747 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index b4ba0be55..b47dfcbb8 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2861,7 +2861,7 @@ int mobskill_event(struct mob_data *md, struct block_list *src, unsigned int tic
res = mobskill_use(md, tick, flag);
else if (flag&BF_SHORT)
res = mobskill_use(md, tick, MSC_CLOSEDATTACKED);
- else if (flag&BF_LONG)
+ else if (flag&BF_LONG && !(flag&BF_MAGIC)) //Long-attacked should not include magic.
res = mobskill_use(md, tick, MSC_LONGRANGEATTACKED);
if (!res)