summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-16 21:00:42 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-16 21:00:42 +0000
commit1a115c25fc82c3769351c7fd5b8ffc487fafcc11 (patch)
treea24c1e567bf2602b34f5978392ec2bcad2a16187 /src/map/skill.c
parent986c6ef4abc2dade347e3e712c5e7c2d7cc4ca3d (diff)
downloadhercules-1a115c25fc82c3769351c7fd5b8ffc487fafcc11.tar.gz
hercules-1a115c25fc82c3769351c7fd5b8ffc487fafcc11.tar.bz2
hercules-1a115c25fc82c3769351c7fd5b8ffc487fafcc11.tar.xz
hercules-1a115c25fc82c3769351c7fd5b8ffc487fafcc11.zip
- Autocasted AL_TELEPORT should now automatically pick menu entry rather than showing the box up.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5301 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 13d8d0cb2..9a534e9e2 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -4335,14 +4335,20 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
break;
}
clif_skill_nodamage(src,bl,skillid,skilllv,1);
- if(sd->skilllv == 1)
- if(!battle_config.skip_teleport_lv1_menu) // possibility to skip menu [LuzZza]
+ if(skilllv == 1) {
+ // possibility to skip menu [LuzZza]
+ if(!battle_config.skip_teleport_lv1_menu &&
+ sd->skillid == AL_TELEPORT) //If skillid is not teleport, this was auto-casted! [Skotlex]
clif_skill_warppoint(sd,skillid,"Random","","","");
else
pc_randomwarp(sd,3);
- else {
- clif_skill_warppoint(sd,skillid,"Random",
- mapindex_id2name(sd->status.save_point.map),"","");
+ } else {
+ if (sd->skillid == AL_TELEPORT)
+ clif_skill_warppoint(sd,skillid,"Random",
+ mapindex_id2name(sd->status.save_point.map),"","");
+ else //Autocasted Teleport level 2??
+ pc_setpos(sd,sd->status.save_point.map,
+ sd->status.save_point.x,sd->status.save_point.y,3);
}
} else if(dstmd && !map[sd->bl.m].flag.monster_noteleport)
mob_warp(dstmd,-1,-1,-1,3);