From cbd07fcd0070223b1036b60baf197efd230d0f53 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 3 May 2012 02:17:38 +0000 Subject: Fixed bugreport:5601 Mechanic's Shapeshift, Genetic's Fire Expansion and Sorcerers Summon Elemental skills all now consume its proper requirements depending on level. Sepcial thanks to Igniz git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16059 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index f75fda59b..d1d35c0d5 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -12770,6 +12770,19 @@ struct skill_condition skill_get_requirement(struct map_session_data* sd, short } } + /* requirements are level-dependent */ + switch( skill ) { + case NC_SHAPESHIFT: + case GN_FIRE_EXPANSION: + case SO_SUMMON_AGNI: + case SO_SUMMON_AQUA: + case SO_SUMMON_VENTUS: + case SO_SUMMON_TERA: + req.itemid[lv-1] = skill_db[j].itemid[lv-1]; + req.amount[lv-1] = skill_db[j].amount[lv-1]; + break; + } + // Check for cost reductions due to skills & SCs switch(skill) { case MC_MAMMONITE: -- cgit v1.2.3-70-g09d2