From 0cda5758665c392494f70495b9f6a636b2d73675 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 23 Mar 2012 04:07:21 +0000 Subject: Fixed bugreport:2424 Twilight Alchemy III no longer allows you to attempt to bypass empty bottle count git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15770 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map') diff --git a/src/map/skill.c b/src/map/skill.c index 90b4c42d8..e9a3ab61d 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5877,10 +5877,14 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in break; case AM_TWILIGHT3: if (sd) { + int ebottle = pc_search_inventory(sd,713); + if( ebottle >= 0 ) + ebottle = sd->status.inventory[ebottle].amount; //check if you can produce all three, if not, then fail: if (!skill_can_produce_mix(sd,970,-1, 100) //100 Alcohol || !skill_can_produce_mix(sd,7136,-1, 50) //50 Acid Bottle || !skill_can_produce_mix(sd,7135,-1, 50) //50 Flame Bottle + || ebottle < 200 //200 empty bottle are required at total. ) { clif_skill_fail(sd,skillid,USESKILL_FAIL_LEVEL,0); break; -- cgit v1.2.3-70-g09d2