添加伪装逻辑处理
This commit is contained in:
parent
4e8430117f
commit
91df9fb906
@ -3142,6 +3142,12 @@ void Human::OnBulletHit(Bullet* bullet)
|
|||||||
HasBuffEffect(kBET_Fly)) {
|
HasBuffEffect(kBET_Fly)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
Buff* buff = GetBuffByEffect(kBET_Camouflage);
|
||||||
|
if (buff && buff->i->int_param2 == 1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#if 0
|
#if 0
|
||||||
if (IsPlayer()) {
|
if (IsPlayer()) {
|
||||||
@ -3213,6 +3219,9 @@ void Human::OnExplosionHit(Explosion* e)
|
|||||||
HasBuffEffect(kBET_Fly)) {
|
HasBuffEffect(kBET_Fly)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (HasBuffEffect(kBET_Dive) && !MetaMgr::Instance()->dive_explosion_dmg_switch) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
RemoveBuffByEffectId(kBET_PeaceMode);
|
RemoveBuffByEffectId(kBET_PeaceMode);
|
||||||
float dmg = e->GetDmg();
|
float dmg = e->GetDmg();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user