diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-26 09:07:48 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-26 09:07:48 +0000 |
commit | 3360d890f130c89878bea401c92cbcaeec3eeee6 (patch) | |
tree | 82c107d82870c67958cefd4e50e194ebb63cecf7 /src/map/skill.c | |
parent | 2a7b862f889f769e2bbfb8b7d65f52a372d6238b (diff) | |
download | hercules-3360d890f130c89878bea401c92cbcaeec3eeee6.tar.gz hercules-3360d890f130c89878bea401c92cbcaeec3eeee6.tar.bz2 hercules-3360d890f130c89878bea401c92cbcaeec3eeee6.tar.xz hercules-3360d890f130c89878bea401c92cbcaeec3eeee6.zip |
Added support for 'reins of mount' item, bugreport:5137
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15283 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 76d09d89b..43abfbcd9 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -7100,7 +7100,16 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in clif_skill_nodamage(src, bl, skillid, skilllv, 1); } break; - + case ALL_RIDING: + if( sd ) { + if( !(sd->sc.option&OPTION_MOUNTING) ) { + pc_setoption(sd, sd->sc.option|OPTION_MOUNTING); + } else { + pc_setoption(sd, sd->sc.option&~OPTION_MOUNTING); + } + clif_skill_nodamage(src, src, skillid, skilllv, 1); + } + break; default: ShowWarning("skill_castend_nodamage_id: Unknown skill used:%d\n",skillid); clif_skill_nodamage(src,bl,skillid,skilllv,1); |