summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-31 15:16:58 -0300
committershennetsind <ind@henn.et>2013-07-31 15:16:58 -0300
commit604f56aa459c563935e6314525d9c61f767984fc (patch)
treedc7c7b44b0c0a281aa3da9ec5d589ec95b06d878 /src/map/skill.c
parent4f14736cfe6952862307eb9b92b893e7ce35ccd1 (diff)
downloadhercules-604f56aa459c563935e6314525d9c61f767984fc.tar.gz
hercules-604f56aa459c563935e6314525d9c61f767984fc.tar.bz2
hercules-604f56aa459c563935e6314525d9c61f767984fc.tar.xz
hercules-604f56aa459c563935e6314525d9c61f767984fc.zip
Fixed Bug #7080
(LG) Overbrand no longer capable of hitting targets with hide (can do so with others e.g. cloak), and it displays a miss when failing to do instead of no feedback (thanks to kisuka for this part). Special Thanks to gunzlinger, kisuka. http://hercules.ws/board/tracker/issue-7080-overbrand/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 97f26cca6..fb8bbad3d 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3207,6 +3207,11 @@ int skill_timerskill(int tid, unsigned int tick, int id, intptr_t data) {
break;
case LG_OVERBRAND_BRANDISH:
case LG_OVERBRAND_PLUSATK:
+ if( iStatus->check_skilluse(src, target, skl->skill_id, 1) )
+ skill->attack(BF_WEAPON, src, src, target, skl->skill_id, skl->skill_lv, tick, skl->flag|SD_LEVEL);
+ else
+ clif->skill_damage(src, target, tick, status_get_amotion(src), status_get_dmotion(target), 0, 1, skl->skill_id, skl->skill_lv, skill->get_hit(skl->skill_id));
+ break;
case SR_KNUCKLEARROW:
skill->attack(BF_WEAPON, src, src, target, skl->skill_id, skl->skill_lv, tick, skl->flag|SD_LEVEL);
break;
@@ -4350,7 +4355,10 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint
break;
case LG_OVERBRAND:
- skill->attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag|SD_LEVEL);
+ if( iStatus->check_skilluse(src, bl, skill_id, 1) )
+ skill->attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag|SD_LEVEL);
+ else
+ clif->skill_damage(src, bl, tick, status_get_amotion(src), status_get_dmotion(bl), 0, 1, skill_id, skill_lv, skill->get_hit(skill_id));
break;
case LG_OVERBRAND_BRANDISH: