summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 06:42:23 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 06:42:23 +0000
commit1be40d108af3537a0375e60e38254cf2ca26a3f3 (patch)
tree7ff624d1e4bd6cbf1a016cfe7219bb29e73861e1 /src
parent145df89a504427fb4f8c69c0eb155ec4f0fc5841 (diff)
downloadhercules-1be40d108af3537a0375e60e38254cf2ca26a3f3.tar.gz
hercules-1be40d108af3537a0375e60e38254cf2ca26a3f3.tar.bz2
hercules-1be40d108af3537a0375e60e38254cf2ca26a3f3.tar.xz
hercules-1be40d108af3537a0375e60e38254cf2ca26a3f3.zip
Fixed Sura Gentle Touch Energy Gain, bugreport:5358, now it gives you proper spheres
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15759 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/battle.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 831b80b66..f674a09c8 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -4097,6 +4097,13 @@ enum damage_lv battle_weapon_attack(struct block_list* src, struct block_list* t
return ATK_DEF;
return ATK_MISS;
}
+ if( sc->data[SC_GT_ENERGYGAIN] ) {
+ if( sd && rand()%100 < 10 + 5 * sc->data[SC_GT_ENERGYGAIN]->val1)
+ pc_addspiritball(sd,
+ skill_get_time(MO_CALLSPIRITS, sc->data[SC_GT_ENERGYGAIN]->val1),
+ sc->data[SC_GT_ENERGYGAIN]->val1);
+ }
+
}
if(tsc && tsc->data[SC_KAAHI] && tsc->data[SC_KAAHI]->val4 == INVALID_TIMER && tstatus->hp < tstatus->max_hp)