summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-16 15:09:05 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-16 15:09:05 +0000
commitb8bec28b62db49329ca30bf5d04b37c40cb147ea (patch)
tree6ef9cc1e39b9f327d643a512b96610634145bc62 /src/map/battle.c
parentb8dd9a491e2e31d43862a03bba3b5295afdc6d8c (diff)
downloadhercules-b8bec28b62db49329ca30bf5d04b37c40cb147ea.tar.gz
hercules-b8bec28b62db49329ca30bf5d04b37c40cb147ea.tar.bz2
hercules-b8bec28b62db49329ca30bf5d04b37c40cb147ea.tar.xz
hercules-b8bec28b62db49329ca30bf5d04b37c40cb147ea.zip
- Shadow Jump and Kirikage won't "move" you if you use them in GvG grounds. Fixed Kirikage so it first warps you, and then you unhide.
- Corrected Zeny Nage so the Zeny spent on the attack is always the exact same value as the damage you are dealing. Also corrected it so it does half damage when used on players. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9229 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index ffc39c595..819e4be65 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2635,16 +2635,10 @@ struct Damage battle_calc_misc_attack(
md.damage = skill_get_zeny(skill_num ,skill_lv);
if (!md.damage) md.damage = 2;
md.damage = md.damage + rand()%md.damage;
-
- if (sd)
- {
- if ( md.damage > sd->status.zeny )
- md.damage=sd->status.zeny;
- pc_payzeny(sd, md.damage);
- }
-
- if(is_boss(target) || tsd || map_flag_gvg2(target->m))
+ if (is_boss(target))
md.damage=md.damage/3;
+ else if (tsd)
+ md.damage=md.damage/2;
break;
case GS_FLING:
md.damage = sd?sd->status.job_level:status_get_lv(src);
@@ -2737,6 +2731,13 @@ struct Damage battle_calc_misc_attack(
if (map_flag_gvg2(target->m))
md.damage=battle_calc_gvg_damage(src,target,md.damage,md.div_,skill_num,skill_lv,md.flag);
+ if (skill_num == NJ_ZENYNAGE && sd)
+ { //Time to Pay Up.
+ if ( md.damage > sd->status.zeny )
+ md.damage=sd->status.zeny;
+ pc_payzeny(sd, md.damage);
+ }
+
return md;
}
/*==========================================