summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-22 13:49:09 +0000
committerxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-22 13:49:09 +0000
commit14c53cd601a6aba5811909ded3dae4992d707271 (patch)
tree63ed44e4ba7eab76e6fefb3a6b99b0812310361e /src/map/pet.c
parent44d7606656a650dc43018b5c63bb56ad1f70e77c (diff)
downloadhercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.gz
hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.bz2
hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.xz
hercules-14c53cd601a6aba5811909ded3dae4992d707271.zip
Minor cleanups, mostly reducing scopes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15504 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 43c3bcb5c..09c924c3c 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -101,7 +101,6 @@ int pet_unlocktarget(struct pet_data *pd)
int pet_attackskill(struct pet_data *pd, int target_id)
{
struct block_list *bl;
- int inf;
if (!battle_config.pet_status_support || !pd->a_skill ||
(battle_config.pet_equip_required && !pd->pet.equip))
@@ -112,6 +111,8 @@ int pet_attackskill(struct pet_data *pd, int target_id)
if (rnd()%100 < (pd->a_skill->rate +pd->pet.intimate*pd->a_skill->bonusrate/1000))
{ //Skotlex: Use pet's skill
+ int inf;
+
bl=map_id2bl(target_id);
if(bl == NULL || pd->bl.m != bl->m || bl->prev == NULL || status_isdead(bl) ||
!check_distance_bl(&pd->bl, bl, pd->db->range3))