1
This commit is contained in:
parent
2d3160023b
commit
9125634376
@ -4677,8 +4677,8 @@ void Human::InternalBeKill(int killer_id, const std::string& killer_name, int we
|
||||
downed = false;
|
||||
SetHP(0.0f);
|
||||
KillMgr::Instance()->OnHumanDead(this, &info);
|
||||
room->frame_event.AddDead(GetWeakPtrRef(), 1000 * 15);
|
||||
if (GetBattleContext()->GetReviveCoin() > 0) {
|
||||
room->frame_event.AddDead(GetWeakPtrRef(), 1000 * MetaMgr::Instance()->revive_time);
|
||||
dead_timer = room->xtimer.AddDeadLineTimerAndAttach
|
||||
(MetaMgr::Instance()->revive_time * SERVER_FRAME_RATE,
|
||||
a8::XParams()
|
||||
@ -4695,6 +4695,7 @@ void Human::InternalBeKill(int killer_id, const std::string& killer_name, int we
|
||||
hum->dead_timer = nullptr;
|
||||
});
|
||||
} else {
|
||||
room->frame_event.AddDead(GetWeakPtrRef(), 0);
|
||||
real_dead = true;
|
||||
}
|
||||
} else {
|
||||
|
@ -1501,7 +1501,7 @@ void Player::InternalRevive(int target_uniid, int revive_coin)
|
||||
if (room->IsGameOver()) {
|
||||
return;
|
||||
}
|
||||
if (dead) {
|
||||
if (!dead) {
|
||||
return;
|
||||
}
|
||||
GetBattleContext()->SetReviveCoin(revive_coin);
|
||||
|
Loading…
x
Reference in New Issue
Block a user