1
This commit is contained in:
parent
9ec6455b7c
commit
87750e34e7
@ -808,7 +808,8 @@ void Buff::ProcInWater()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Human* hum = buff->owner->AsHuman();
|
Human* hum = buff->owner->AsHuman();
|
||||||
if (hum->GetOxygen() < MetaMgr::Instance()->dive_oxygen_total) {
|
if (!hum->HasBuffEffect(kBET_Dive) &&
|
||||||
|
hum->GetOxygen() < MetaMgr::Instance()->dive_oxygen_total) {
|
||||||
hum->AddOxygen(MetaMgr::Instance()->inwater_oxygen_recover);
|
hum->AddOxygen(MetaMgr::Instance()->inwater_oxygen_recover);
|
||||||
hum->room->frame_event.AddPropChg(hum->GetWeakPtrRef(),
|
hum->room->frame_event.AddPropChg(hum->GetWeakPtrRef(),
|
||||||
kPropDive,
|
kPropDive,
|
||||||
|
@ -3835,6 +3835,10 @@ void Human::DoDive()
|
|||||||
if (HasBuffEffect(kBET_Dive)) {
|
if (HasBuffEffect(kBET_Dive)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (HasBuffEffect(kBET_Driver) ||
|
||||||
|
HasBuffEffect(kBET_Passenger)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (HasBuffEffect(kBET_Camouflage) ) {
|
if (HasBuffEffect(kBET_Camouflage) ) {
|
||||||
RemoveBuffByEffectId(kBET_Camouflage);
|
RemoveBuffByEffectId(kBET_Camouflage);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user