summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-13 16:54:24 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-13 16:54:24 +0000
commit7751fc21990d18f215dff82669a470b7c3660b11 (patch)
treefa1816a802c506ef88ca73f0492340423da64df1 /src/map/battle.c
parent996f20c134b0aa6de62b06b286b626b950527479 (diff)
downloadhercules-7751fc21990d18f215dff82669a470b7c3660b11.tar.gz
hercules-7751fc21990d18f215dff82669a470b7c3660b11.tar.bz2
hercules-7751fc21990d18f215dff82669a470b7c3660b11.tar.xz
hercules-7751fc21990d18f215dff82669a470b7c3660b11.zip
- Modified PA_GOSPEL so that the random damage attack becomes a BF_MISC attack.
- Added pc_resetskill when lowering job level and there's not enough skpoints to substract. - Fixed compile error of SG_FUSION in pc.c - Modified pc_resetskill to receive a flag to indicate if it should or not do status_calc_pc and send skill block updates. Meant to optimize performance when used in the middle of a larger update. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5269 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 50afba057..f096ab117 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2834,7 +2834,10 @@ struct Damage battle_calc_misc_attack(
damagefix=0;
aflag = (aflag&~BF_RANGEMASK)|BF_LONG;
break;
-
+ case PA_GOSPEL:
+ damage = 1+rand()%9999;
+ aflag = (aflag&~BF_RANGEMASK)|BF_LONG;
+ break;
case CR_ACIDDEMONSTRATION:
//This equation is not official, but it's the closest to the official one
//that Viccious Pucca and the other folks at the forums could come up with. [Skotlex]