summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 05:10:30 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 05:10:30 +0000
commite553f18ce08349021db2f0ffe42f9c161daabb50 (patch)
treee2922de7c260e0d901d0574ed6519ada931d7fa0 /src
parent74cdd2aabac3b6f74fe84a77301245ffc876db6f (diff)
downloadhercules-e553f18ce08349021db2f0ffe42f9c161daabb50.tar.gz
hercules-e553f18ce08349021db2f0ffe42f9c161daabb50.tar.bz2
hercules-e553f18ce08349021db2f0ffe42f9c161daabb50.tar.xz
hercules-e553f18ce08349021db2f0ffe42f9c161daabb50.zip
Fixed bugreport:5683 Mechanics in mado gear are no longer able to use blacksmith or whitesmith skills.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16043 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 2e028b129..90b84ad3a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -11724,8 +11724,24 @@ int skill_check_condition_castbegin(struct map_session_data* sd, short skill, sh
clif_skill_fail(sd,skill,USESKILL_FAIL_LEVEL,0);
return 0;
}
- }
-
+ }
+ if( sd->sc.option&OPTION_MADOGEAR ) {
+ switch( skill ) { //Blacksmiths and Mastersmiths skills are unusable when Mado is equipped. [Jobbie]
+ case BS_REPAIRWEAPON: case WS_MELTDOWN:
+ case BS_HAMMERFALL: case WS_CARTBOOST:
+ case BS_ADRENALINE: case WS_WEAPONREFINE:
+ case BS_WEAPONPERFECT: case WS_CARTTERMINATION:
+ case BS_OVERTHRUST: case WS_OVERTHRUSTMAX:
+ case BS_MAXIMIZE:
+ case BS_ADRENALINE2:
+ case BS_UNFAIRLYTRICK:
+ case BS_GREED:
+ clif_skill_fail(sd,skill,USESKILL_FAIL_LEVEL,0);
+ return 0;
+ default: //Only Mechanic exlcusive skill can be used.
+ break;
+ }
+ }
if( lv < 1 || lv > MAX_SKILL_LEVEL )
return 0;