Fixed CDP not failing when haven't met the requirements (#3887)

This commit is contained in:
Daegaladh 2019-01-23 18:45:44 +01:00 committed by GitHub
parent b1865b31fe
commit a9f868f85f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7680,8 +7680,10 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
break;
case ASC_CDP:
if(sd) {
clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
skill_produce_mix(sd, skill_id, ITEMID_POISON_BOTTLE, 0, 0, 0, 1, -1); //Produce a Poison Bottle.
if(skill_produce_mix(sd, skill_id, ITEMID_POISON_BOTTLE, 0, 0, 0, 1, -1)) //Produce a Poison Bottle.
clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
else
clif_skill_fail(sd,skill_id,USESKILL_FAIL_STUFF_INSUFFICIENT,0);
}
break;