diff options
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r-- | src/map/pc.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index d2b2f44..96233e1 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -796,6 +796,9 @@ int pc_authok(AccountId id, int login_id2, pc_calcstatus(sd, 1); + if(sd->bl_m->mask > 0) + clif_send_mask(sd, sd->bl_m->mask); + // Init Quest Log clif_sendallquest(sd); return 0; @@ -944,7 +947,7 @@ int pc_calcstatus(dumb_ptr<map_session_data> sd, int first) b_mdef = sd->mdef; b_mdef2 = sd->mdef2; b_base_atk = sd->base_atk; - if (!pc_isdead(sd) && sd->state.pvpchannel == 1) + if (sd->state.pvpchannel == 1) b_pvpchannel = sd->state.pvpchannel; sd->max_weight = max_weight_base_0 + sd->status.attrs[ATTR::STR] * 300; @@ -3313,6 +3316,11 @@ int pc_damage(dumb_ptr<block_list> src, dumb_ptr<map_session_data> sd, }; npc_event_doall_l(stringish<ScriptLabel>("OnPCKilledEvent"_s), sd->bl_id, arg); npc_event_doall_l(stringish<ScriptLabel>("OnPCKillEvent"_s), src->bl_id, arg); + + sd->state.pvp_rank = 0; + src->is_player()->state.pvp_rank++; + clif_pvpstatus(sd); + clif_pvpstatus(src->is_player()); } npc_event_doall_l(stringish<ScriptLabel>("OnPCDieEvent"_s), sd->bl_id, nullptr); |