Improved status_isdead and status_get_status_data (#8570)
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
@@ -6249,7 +6249,6 @@ ACMD_FUNC(useskill)
|
||||
*------------------------------------------*/
|
||||
ACMD_FUNC(displayskill)
|
||||
{
|
||||
struct status_data * status;
|
||||
t_tick tick;
|
||||
uint16 skill_id;
|
||||
uint16 skill_lv = 1;
|
||||
@@ -6262,7 +6261,8 @@ ACMD_FUNC(displayskill)
|
||||
clif_displaymessage(fd, msg_txt(sd,825));// Effect Types: 0: All, 1: Damage, 2: Splash Dmg, 3: No Damage, 4: Ground
|
||||
return -1;
|
||||
}
|
||||
status = status_get_status_data(&sd->bl);
|
||||
|
||||
status_data* status = status_get_status_data(sd->bl);
|
||||
tick = gettick();
|
||||
if (type == 0 || type == 1)
|
||||
clif_skill_damage(&sd->bl, &sd->bl, tick, status->amotion, status->dmotion, 1, 1, skill_id, skill_lv, DMG_SINGLE);
|
||||
@@ -8181,7 +8181,6 @@ ACMD_FUNC(homtalk)
|
||||
ACMD_FUNC(hominfo)
|
||||
{
|
||||
struct homun_data *hd;
|
||||
struct status_data *status;
|
||||
nullpo_retr(-1, sd);
|
||||
|
||||
if ( !hom_is_active(sd->hd) ) {
|
||||
@@ -8190,7 +8189,7 @@ ACMD_FUNC(hominfo)
|
||||
}
|
||||
|
||||
hd = sd->hd;
|
||||
status = status_get_status_data(&hd->bl);
|
||||
status_data* status = status_get_status_data(hd->bl);
|
||||
clif_displaymessage(fd, msg_txt(sd,1261)); // Homunculus stats:
|
||||
|
||||
snprintf(atcmd_output, sizeof(atcmd_output) ,msg_txt(sd,1262), // HP: %d/%d - SP: %d/%d
|
||||
|
||||
Reference in New Issue
Block a user