1
This commit is contained in:
parent
ceae63d636
commit
a2c1174785
@ -304,7 +304,7 @@ void Obstacle::Explosion(Bullet* bullet)
|
||||
case ET_Player:
|
||||
{
|
||||
Human* hum = (Human*)target;
|
||||
if (!hum->dead) {
|
||||
if (!hum->dead && hum->team_id != team_id_) {
|
||||
float dmg = meta->i->damage();
|
||||
float def = hum->ability.def;
|
||||
float finaly_dmg = dmg * (1 - def/MetaMgr::Instance()->K);
|
||||
|
@ -184,7 +184,8 @@ void Player::UpdateShot()
|
||||
if (dead ||
|
||||
downed ||
|
||||
room->IsWaitingStart() ||
|
||||
HasBuffEffect(kBET_Jump)) {
|
||||
HasBuffEffect(kBET_Jump) ||
|
||||
HasBuffEffect(kBET_Fly)) {
|
||||
shot_start = false;
|
||||
shot_hold = false;
|
||||
series_shot_frames = 0;
|
||||
|
@ -384,7 +384,7 @@ void RoomObstacle::ActiveMine()
|
||||
{
|
||||
room->xtimer.AddRepeatTimerAndAttach
|
||||
(
|
||||
SERVER_FRAME_RATE,
|
||||
1,
|
||||
a8::XParams()
|
||||
.SetSender(this),
|
||||
[] (const a8::XParams& param)
|
||||
|
Loading…
x
Reference in New Issue
Block a user