attempting to fly with movement buff will ground you

This commit is contained in:
2024-05-11 17:59:13 -05:00
parent bd536961e2
commit 1378bc8030
+18
View File
@@ -4814,6 +4814,24 @@ public class PlayerCharacter extends AbstractCharacter {
if (!this.isAlive())
return;
if(this.isFlying()){
if (this.containsEffect(487604089)) {
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false);
}
if (this.containsEffect(296836988)) {
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false);
}
if (this.containsEffect(163174641)) {
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false);
}
if (this.containsEffect(163419371)) {
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false);
}
if (this.containsEffect(79883622)) {
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 57584498, 40, false);
}
}
updateLocation();
updateMovementState();
updateRegen();