1
This commit is contained in:
parent
5850eda4bf
commit
e8dbd51849
@ -3866,10 +3866,18 @@ void Creature::ClearSkillHoldState()
|
||||
|
||||
bool Creature::HasHeightOffset()
|
||||
{
|
||||
|
||||
Buff* buff = GetBuffByEffectId(kBET_Floating);
|
||||
if (!buff) {
|
||||
return false;
|
||||
}
|
||||
return buff->meta->GetBuffParam1(buff) > 0.00001f;
|
||||
}
|
||||
|
||||
float Creature::GetHeightOffset()
|
||||
{
|
||||
|
||||
Buff* buff = GetBuffByEffectId(kBET_Floating);
|
||||
if (!buff) {
|
||||
return 0;
|
||||
}
|
||||
return buff->meta->GetBuffParam1(buff);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user