diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-24 14:49:16 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-24 14:49:16 +0000 |
commit | 84f83d1034146b36bb3855ef654548f0802093a3 (patch) | |
tree | 2f5bf8df97f6556570b7ccdf7baeea0db697c4f4 /src/map/unit.c | |
parent | 73e0a442e9e9b2366ad68301c2969334d8020738 (diff) | |
download | hercules-84f83d1034146b36bb3855ef654548f0802093a3.tar.gz hercules-84f83d1034146b36bb3855ef654548f0802093a3.tar.bz2 hercules-84f83d1034146b36bb3855ef654548f0802093a3.tar.xz hercules-84f83d1034146b36bb3855ef654548f0802093a3.zip |
- Added setting clear_skills_on_warp to specify when a character's land-based skills are deleted when the caster changes maps. Defaults to all types.
- Should have fixed Brandish Spear not passing the flag to skill_attack, causing it to do miserable damage.
- Warp Portal will no longer be removed when caster steps through it (this is left to the new clear_skills_on_warp setting)
- Cleaned up status_percent_change to switch equations when the target has high hp to prevent overflows, also it will directly take hp/maxhp when a rate of 100 or higher is passed to prevent calculations.
- Traps and Land Elemental fields are no longer automatically removed on map change (handled now by clear_skills_on_warp)
- traps_setting &2 no longer does anything (handled now by blah blah)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8469 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 1fa676823..af77ce7f9 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -534,13 +534,17 @@ int unit_warp(struct block_list *bl,int m,short x,short y,int type) return 2; } } - + if (bl->type == BL_PC) //Use pc_setpos return pc_setpos((TBL_PC*)bl, map[m].index, x, y, type); if (!unit_remove_map(bl, type)) return 3; + if (bl->m != m && battle_config.clear_unit_onwarp && + battle_config.clear_unit_onwarp&bl->type) + skill_clear_unitgroup(bl); + bl->x=ud->to_x=x; bl->y=ud->to_y=y; bl->m=m; |