summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-03 02:17:38 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-03 02:17:38 +0000
commitcbd07fcd0070223b1036b60baf197efd230d0f53 (patch)
tree4564993708d869de930a7adb925ef0c4aae2ab7f /src
parent2365342722228a79ff93cad0aca66fdaa061f880 (diff)
downloadhercules-cbd07fcd0070223b1036b60baf197efd230d0f53.tar.gz
hercules-cbd07fcd0070223b1036b60baf197efd230d0f53.tar.bz2
hercules-cbd07fcd0070223b1036b60baf197efd230d0f53.tar.xz
hercules-cbd07fcd0070223b1036b60baf197efd230d0f53.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c13
1 files changed, 13 insertions, 0 deletions
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: