summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-05 18:10:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-05 18:10:54 +0000
commit2e6cfd109a8800433bca0d9060d47eadd0cb8734 (patch)
tree2f31b30e5f415d9d6403176911dc6a9dbe85cc07 /src/map/skill.c
parent63efe8b1c659a3b1491321bbfbd0d1731daf8e74 (diff)
downloadhercules-2e6cfd109a8800433bca0d9060d47eadd0cb8734.tar.gz
hercules-2e6cfd109a8800433bca0d9060d47eadd0cb8734.tar.bz2
hercules-2e6cfd109a8800433bca0d9060d47eadd0cb8734.tar.xz
hercules-2e6cfd109a8800433bca0d9060d47eadd0cb8734.zip
- skill_blown will now trigger on-touch npcs on the landing tile.
- Max trade distance has been reduced from 5 to 2. - Undisguising will now resend the cart-contents. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8940 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 3ec9274d6..98a4e2dc8 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -22,6 +22,7 @@
#include "pet.h"
#include "mercenary.h" //[orn]
#include "mob.h"
+#include "npc.h"
#include "battle.h"
#include "party.h"
#include "itemdb.h"
@@ -1770,6 +1771,9 @@ int skill_blown (struct block_list *src, struct block_list *target, int count)
if(!(count&0x20000))
clif_blown(target);
+ if(target->type == BL_PC && map_getcell(target->m,x,y,CELL_CHKNPC))
+ npc_touch_areanpc((TBL_PC*)target,target->m,x,y); //Invoke area NPC
+
return (count&0xFFFF); //Return amount of knocked back cells.
}