summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-28 11:11:38 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-28 11:11:38 +0000
commit6e68e6a11c4f48ac3276b9b6b744a3afe156904e (patch)
tree1de70219d3a0ce1173db81c3f657cc11787b50d0 /src/map/skill.c
parent8602a7a5b540436411328c3b42bbe465defa40b7 (diff)
downloadhercules-6e68e6a11c4f48ac3276b9b6b744a3afe156904e.tar.gz
hercules-6e68e6a11c4f48ac3276b9b6b744a3afe156904e.tar.bz2
hercules-6e68e6a11c4f48ac3276b9b6b744a3afe156904e.tar.xz
hercules-6e68e6a11c4f48ac3276b9b6b744a3afe156904e.zip
Hmm...fixed my last commit making Tarotcard ignore sp requirement.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13817 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 34c52a716..cdee51968 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8686,6 +8686,8 @@ int skill_consume_requirement( struct map_session_data *sd, short skill, short l
if( type&1 )
{
+ if( skill == CG_TAROTCARD )
+ req.sp = 0; // sp will be consumed in skill_cast_nodamage_id [Inkfish]
if(req.hp || req.sp)
status_zap(&sd->bl, req.hp, req.sp);
}
@@ -8822,9 +8824,6 @@ struct skill_condition skill_get_requirement(struct map_session_data* sd, short
// Check for cost reductions due to skills & SCs
switch(skill) {
- case CG_TAROTCARD:
- req.sp = 0; // sp will be consumed in skill_cast_nodamage_id [Inkfish]
- break;
case MC_MAMMONITE:
if(pc_checkskill(sd,BS_UNFAIRLYTRICK)>0)
req.zeny -= req.zeny*10/100;