This commit is contained in:
aozhiwei 2023-03-15 19:41:24 +08:00
parent bf9f93cf6c
commit 795c24e37b

View File

@ -1508,8 +1508,10 @@ void Creature::CheckSpecObject(int new_poly_flags)
if ((1 << i) == SAMPLE_POLYFLAGS_GLASS) {
if (a8::HasBitFlag(poly_ext_flags_, i)) {
RemoveBuffById(8058);
RemoveBuffById(kInGrassBuffId);
} else {
TryAddBuffAndSetTime(this, 8058, 9999999);
TryAddBuffAndSetTime(this, kInGrassBuffId, 9999999);
}
}
}