diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-29 14:39:21 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-29 14:39:21 +0000 |
commit | eba33e17bf19e9e0dfedc387546bd33cfd82daae (patch) | |
tree | d56887f15386fd9985c724f40070aa124a8cd836 /src/map | |
parent | 78d1611828b41723fd2b6b6677f49bac7e1a7d46 (diff) | |
download | hercules-eba33e17bf19e9e0dfedc387546bd33cfd82daae.tar.gz hercules-eba33e17bf19e9e0dfedc387546bd33cfd82daae.tar.bz2 hercules-eba33e17bf19e9e0dfedc387546bd33cfd82daae.tar.xz hercules-eba33e17bf19e9e0dfedc387546bd33cfd82daae.zip |
temp steal disable
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6374 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index b3c88c0a3..2393cf97b 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2929,13 +2929,16 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl) md=(struct mob_data *)bl;
- if(md->state.steal_flag>battle_config.skill_steal_max_tries || status_get_mode(bl)&MD_BOSS || md->master_id ||
+ if(1 || md->state.steal_flag>battle_config.skill_steal_max_tries || status_get_mode(bl)&MD_BOSS || md->master_id ||
(md->class_>=1324 && md->class_<1364) || // prevent stealing from treasure boxes [Valaris]
map[md->bl.m].flag.nomobloot || // check noloot map flag [Lorky]
md->sc.data[SC_STONE].timer != -1 || md->sc.data[SC_FREEZE].timer != -1 //status change check
)
return 0;
+ if(md->state.steal_flag < battle_config.skill_steal_max_tries)
+ md->state.steal_flag++;
+
skill = battle_config.skill_steal_type == 1
? (sd->paramc[4] - md->db->dex)/2 + pc_checkskill(sd,TF_STEAL)*6 + 10
: sd->paramc[4] - md->db->dex + pc_checkskill(sd,TF_STEAL)*3 + 10;
@@ -2955,9 +2958,6 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl) if (i == MAX_MOB_DROP)
return 0;
- if(md->state.steal_flag < battle_config.skill_steal_max_tries)
- md->state.steal_flag++;
-
memset(&tmp_item,0,sizeof(tmp_item));
tmp_item.nameid = itemid;
tmp_item.amount = 1;
|