summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-10 16:17:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-10 16:17:13 +0000
commit0ce48c125084fdbbcdd2b2cd0fd35e8cb6a7c48c (patch)
treed8f6cb763f61951fc26e7c2a2bdb93c18040beda /src/map/skill.c
parent971a38ee78040cb50519df3b8db46d5553193939 (diff)
downloadhercules-0ce48c125084fdbbcdd2b2cd0fd35e8cb6a7c48c.tar.gz
hercules-0ce48c125084fdbbcdd2b2cd0fd35e8cb6a7c48c.tar.bz2
hercules-0ce48c125084fdbbcdd2b2cd0fd35e8cb6a7c48c.tar.xz
hercules-0ce48c125084fdbbcdd2b2cd0fd35e8cb6a7c48c.zip
- 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
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 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);