summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-05 08:51:42 -0300
committerpanikon <panikon@zoho.com>2014-07-05 08:51:42 -0300
commit91057aae931adf43580f4bc19d2f84b3157c819e (patch)
treee9d09ea03a42a5b57cb5949ebfd643167db8f6ef
parenta60522bac68e7ce83d2a2703fde154e85c17db30 (diff)
downloadhercules-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/ )
-rw-r--r--src/map/skill.c5
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: