Skip to content

Commit

Permalink
Fix skill Weapon Crush (bug:6985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michieru committed Oct 4, 2014
1 parent fc01157 commit f51106c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map/skill.c
Expand Up @@ -6617,9 +6617,9 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
if( skill_id == GC_WEAPONCRUSH){
d = skill->get_time(skill_id,skill_lv);
if(bl->type == BL_PC)
d += skill_lv * 15 + (sstatus->dex - tstatus->dex);
d += 1000 * ( skill_lv * 15 + ( sstatus->dex - tstatus->dex ) );
else
d += skill_lv * 30 + (sstatus->dex - tstatus->dex) / 2;
d += 1000 * ( skill_lv * 30 + ( sstatus->dex - tstatus->dex ) / 2 );
}else
d = skill->get_time(skill_id,skill_lv) + (sstatus->dex - tstatus->dex)*500;

Expand Down
11 changes: 11 additions & 0 deletions src/map/unit.c
Expand Up @@ -1103,6 +1103,17 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui
return 0;
}
break;
case GC_WEAPONCRUSH:
if( sc && sc->data[SC_COMBOATTACK] && sc->data[SC_COMBOATTACK]->val1 == GC_WEAPONBLOCKING ) {
if( (target=map->id2bl(sc->data[SC_COMBOATTACK]->val2)) == NULL ) {
clif->skill_fail(sd,skill_id,USESKILL_FAIL_GC_WEAPONBLOCKING,0);
return 0;
}
} else {
clif->skill_fail(sd,skill_id,USESKILL_FAIL_GC_WEAPONBLOCKING,0);
return 0;
}
break;
}
if (target)
target_id = target->id;
Expand Down

0 comments on commit f51106c

Please sign in to comment.