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 | |
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
-rw-r--r-- | src/map/skill.c | 11 | ||||
-rw-r--r-- | src/map/skill.h | 1 |
2 files changed, 11 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); diff --git a/src/map/skill.h b/src/map/skill.h index 2e4a68fa4..25d89dcd0 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -1329,6 +1329,7 @@ enum e_skill { ALL_ODINS_RECALL = 2533, RETURN_TO_ELDICASTES, ALL_BUYING_STORE, + ALL_RIDING = 2538, HLIF_HEAL = 8001, HLIF_AVOID, |