Issue information

Issue ID
#6837
Status
Fixed
Severity
Low
Started
Hercules Elf Bot
Oct 31, 2012 4:26
Last Post
Hercules Elf Bot
Nov 8, 2012 23:37
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Oct 31, 2012 4:26

Originally posted by [b]mkbu95[/b]
Not sure if I already reported this, I think it was something about homunc, not mercenary/elemental. Anyway..

src/map/mercenary.c[code]void mercenary_damage(struct mercenary_data *md, int hp, int sp)
{
if( hp )
clif_mercenary_updatestatus(md->master, SP_HP);
if( sp )
clif_mercenary_updatestatus(md->master, SP_SP);
}

void mercenary_heal(struct mercenary_data *md, int hp, int sp)
{
if( hp )
clif_mercenary_updatestatus(md->master, SP_HP);
if( sp )
clif_mercenary_updatestatus(md->master, SP_SP);
}[/code]
src/map/elemental.c[code]void elemental_damage(struct elemental_data *ed, int hp, int sp) {
if( hp )
clif_elemental_updatestatus(ed->master, SP_HP);
if( sp )
clif_elemental_updatestatus(ed->master, SP_SP);
}

void elemental_heal(struct elemental_data *ed, int hp, int sp) {
if( hp )
clif_elemental_updatestatus(ed->master, SP_HP);
if( sp )
clif_elemental_updatestatus(ed->master, SP_SP);
}
[/code]

src/map/mercenary.c[code]
int mercenary_dead(struct mercenary_data *md, struct block_list *src)
{
merc_delete(md, 1);
return 0;
}[/code]
src/map/homunculus.c[code]int merc_hom_dead(struct homun_data *hd, struct block_list *src);[/code]
src/map/elemental.c[code]int elemental_dead(struct elemental_data *ed, struct block_list *src) {
elemental_delete(ed, 1);
return 0;
}[/code]
src/map/elemental.c[code]static int elemental_ai_timer(int tid, unsigned int tick, int id, intptr_t data) {
map_foreachpc(elemental_ai_sub_foreachclient,tick);

return 0;
}[/code]
src/map/instance.c[code]int instance_destroy_timer(int tid, unsigned int tick, int id, intptr_t data)
{
instance_destroy(id);
return 0;
}[/code]