diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-30 18:41:05 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-30 18:41:05 +0000 |
commit | 6699c90798b52154bf6d4cd62cf151b312a12db1 (patch) | |
tree | 4a7a83d78d89284f4d0e5a6eb991a6adf521a579 /src/map/battle.c | |
parent | b5bfcd51b5544f76bf68c14d5c13f80d922290f0 (diff) | |
download | hercules-6699c90798b52154bf6d4cd62cf151b312a12db1.tar.gz hercules-6699c90798b52154bf6d4cd62cf151b312a12db1.tar.bz2 hercules-6699c90798b52154bf6d4cd62cf151b312a12db1.tar.xz hercules-6699c90798b52154bf6d4cd62cf151b312a12db1.zip |
- If someone is expulsed from a guild while the guild storage is open, it will be auto-closed now.
- Modified battle_consume_ammo to prevent consuming multiple arrows on AC_SHOWER.
- Readded script command skillpointcount. (who removed it? <.<)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6406 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 521753a25..c1c451471 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -934,12 +934,18 @@ static void battle_calc_base_damage(struct block_list *src, struct block_list *t * Consumes ammo for the given skill.
*------------------------------------------
*/
-static void battle_consume_ammo(TBL_PC*sd, int skill, int lv)
+void battle_consume_ammo(TBL_PC*sd, int skill, int lv)
{
int qty=1;
if (!battle_config.arrow_decrement)
return;
+ if (skill == AC_SHOWER) {
+ //Can't consume arrows this way as it triggers per target, gotta wait for the direct invocation with lv -1
+ if (lv > 0)
+ return;
+ lv *= -1;
+ }
if (skill)
{
qty = skill_get_ammo_qty(skill, lv);
|