summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2014-10-15 17:43:57 +0200
committerMichieru <Michieru@users.noreply.github.com>2014-10-15 17:43:57 +0200
commit2ae4a8191088e117724b1512a0b8be91608a4b8d (patch)
treee50c2a9c3a7016abfd7f9740993df4b506e1143a /src
parent6c8bafc1b0c191084a1a2aa1dc3ddcc89c928707 (diff)
downloadhercules-2ae4a8191088e117724b1512a0b8be91608a4b8d.tar.gz
hercules-2ae4a8191088e117724b1512a0b8be91608a4b8d.tar.bz2
hercules-2ae4a8191088e117724b1512a0b8be91608a4b8d.tar.xz
hercules-2ae4a8191088e117724b1512a0b8be91608a4b8d.zip
Fix Hovering Booster should be equip to cast Hovering
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 6826e4c3e..e4f5f8b5d 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -13383,6 +13383,14 @@ int skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_id
return 0;
}
break;
+ case NC_HOVERING:
+ if (( sd->equip_index[EQI_ACC_L] >= 0 && sd->status.inventory[sd->equip_index[EQI_ACC_L]].nameid == ITEMID_HOVERING_BOOSTER ) ||
+ ( sd->equip_index[EQI_ACC_R] >= 0 && sd->status.inventory[sd->equip_index[EQI_ACC_R]].nameid == ITEMID_HOVERING_BOOSTER ));
+ else {
+ clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
+ return 0;
+ }
+ break;
case SO_FIREWALK:
case SO_ELECTRICWALK: // Can't be casted until you've walked all cells.
if( sc && sc->data[SC_PROPERTYWALK] &&