mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-21 23:58:51 -05:00
Disable CC knockback while crawling (#3187)
This commit is contained in:
parent
3235f88ef6
commit
d32d8836f8
@ -211,7 +211,8 @@ namespace GameInteractionEffect {
|
|||||||
|
|
||||||
// MARK: - KnockbackPlayer
|
// MARK: - KnockbackPlayer
|
||||||
GameInteractionEffectQueryResult KnockbackPlayer::CanBeApplied() {
|
GameInteractionEffectQueryResult KnockbackPlayer::CanBeApplied() {
|
||||||
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused()) {
|
Player* player = GET_PLAYER(gPlayState);
|
||||||
|
if (!GameInteractor::IsSaveLoaded() || GameInteractor::IsGameplayPaused() || player->stateFlags2 & PLAYER_STATE2_CRAWLING) {
|
||||||
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
return GameInteractionEffectQueryResult::TemporarilyNotPossible;
|
||||||
} else {
|
} else {
|
||||||
return GameInteractionEffectQueryResult::Possible;
|
return GameInteractionEffectQueryResult::Possible;
|
||||||
|
Loading…
Reference in New Issue
Block a user