summaryrefslogtreecommitdiff
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
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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/skill.c16
2 files changed, 13 insertions, 5 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index d974ddb91..2400337e0 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EVERYTHING ELSE
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
2006/02/16
+ * Autocasted AL_TELEPORT should now automatically pick menu entry rather
+ than showing the box up. [Skotlex]
* The battle config options sp_rate and hp_rate are now applied
independently of the same type of bonuses from cards. [Skotlex]
* In CELL_NOSTACK mode, mob_canreach will now ignore other players when
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);