- Fixed HLIF_HEAL healing the homunc instead of the master

- Fixed HLIF_AVOID not increasing walk speed of master

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8355 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
toms 2006-08-18 21:23:12 +00:00
parent 56cb3651d6
commit ae81bd6663
3 changed files with 8 additions and 1 deletions

View File

@ -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.
2006/08/18
* Fixed HLIF_HEAL healing the homunc instead of the master [Toms]
* Fixed HLIF_AVOID not increasing walk speed of master [Toms]
* Fixed the atk_rate (Turtle General Card) bonus not working on
dual-wielders. [Skotlex]
* Made HLIF_HEAL a self skill that auto-selects target to caster's master.

View File

@ -3732,7 +3732,11 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
clif_skill_nodamage(src,bl,skillid,skilllv,
sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv)));
break;
case HLIF_AVOID: //[orn]
case HLIF_AVOID:
i = skill_get_time(skillid,skilllv);
clif_skill_nodamage(src,bl,skillid,skilllv,sc_start(src,type,100,skilllv,i));
clif_skill_nodamage(src,src,skillid,skilllv,sc_start(&hd->master->bl,type,100,skilllv,i));
break;
case HAMI_DEFENCE:
i = skill_get_time(skillid,skilllv);
clif_skill_nodamage(src,bl,skillid,skilllv,

View File

@ -790,6 +790,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
case HAMI_CASTLE:
target = battle_get_master(src);
if (!target) return 0;
target_id = target->id;
}
if(!target && (target=map_id2bl(target_id)) == NULL )