summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index d15a50a27..89642430e 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1495,11 +1495,8 @@ static void mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, str
&& check_distance_blxy(&dlist->first_sd->bl, dlist->x, dlist->y, AUTOLOOT_DISTANCE)
#endif
) { //Autoloot.
- if (party_share_loot(
- dlist->first_sd->status.party_id?
- party_search(dlist->first_sd->status.party_id):
- NULL,
- dlist->first_sd,&ditem->item_data,dlist->first_sd->bl.id) == 0
+ if (party_share_loot(party_search(dlist->first_sd->status.party_id),
+ dlist->first_sd, &ditem->item_data, dlist->first_sd->bl.id) == 0
) {
ers_free(item_drop_ers, ditem);
return;
@@ -2344,7 +2341,7 @@ int mob_class_change (struct mob_data *md, int class_)
clif_mob_class_change(md,class_);
status_calc_mob(md, 3);
- if (battle_config.monster_class_change_full_recover) {
+ if (battle_config.monster_class_change_recover) {
memset(md->dmglog, 0, sizeof(md->dmglog));
md->tdmg = 0;
} else {
@@ -2465,7 +2462,7 @@ int mob_summonslave(struct mob_data *md2,int *value,int amount,int skill_id)
amount+=k; //Increase final value by same amount to preserve total number to summon.
}
- if (!battle_config.monster_class_change_full_recover &&
+ if (!battle_config.monster_class_change_recover &&
(skill_id == NPC_TRANSFORMATION || skill_id == NPC_METAMORPHOSIS))
hp_rate = 100*md2->status.hp/md2->status.max_hp;