diff options
author | panikon <panikon@zoho.com> | 2014-07-05 08:51:42 -0300 |
---|---|---|
committer | panikon <panikon@zoho.com> | 2014-07-05 08:51:42 -0300 |
commit | 91057aae931adf43580f4bc19d2f84b3157c819e (patch) | |
tree | e9d09ea03a42a5b57cb5949ebfd643167db8f6ef /src/map | |
parent | a60522bac68e7ce83d2a2703fde154e85c17db30 (diff) | |
download | hercules-91057aae931adf43580f4bc19d2f84b3157c819e.tar.gz hercules-91057aae931adf43580f4bc19d2f84b3157c819e.tar.bz2 hercules-91057aae931adf43580f4bc19d2f84b3157c819e.tar.xz hercules-91057aae931adf43580f4bc19d2f84b3157c819e.zip |
Fixed issue with mistress card and WL_COMET/AB_ADORAMUS (issue: 7935 http://hercules.ws/board/tracker/issue-7935-nogemstone/ )
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a648eb113..9676a6d9f 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -13054,14 +13054,17 @@ int skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_id case WL_COMET: { int idx; + + if( !require.itemid[0] ) // issue: 7935 + break; if( skill->check_pc_partner(sd,skill_id,&skill_lv,1,0) <= 0 && ((idx = pc->search_inventory(sd,require.itemid[0])) < 0 || sd->status.inventory[idx].amount < require.amount[0]) ) { //clif->skill_fail(sd,skill_id,USESKILL_FAIL_NEED_ITEM,require.amount[0],require.itemid[0]); clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); return 0; } - } break; + } case WL_SUMMONFB: case WL_SUMMONBL: case WL_SUMMONWB: |