From 0ce48c125084fdbbcdd2b2cd0fd35e8cb6a7c48c Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 10 Nov 2006 16:17:13 +0000 Subject: - AL_TELEPORT now fails when used on top of Land Protector. - Some minor cleanings in pc_setpos, it may (or not) help fix that homunc-caused "map_addblock" error message. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9192 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index 3e10a6780..03ed2f235 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -4334,6 +4334,10 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in break; case AL_TELEPORT: + //Should fail when used on top of Land Protector [Skotlex] + if (map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR)) + break; + if(sd) { if (map[bl->m].flag.noteleport) { clif_skill_teleportmessage(sd,0); -- cgit v1.2.3-70-g09d2