error message for flying with movement buff

This commit is contained in:
2024-08-31 19:17:52 -05:00
parent 362832a196
commit 25d70cca4f
2 changed files with 3 additions and 0 deletions
@@ -295,11 +295,13 @@ public enum PowersManager {
for(ActionsBase ab : pb.getActions()){
for(AbstractEffectModifier mod1 : ab.getPowerAction().getEffectsBase().getModifiers()){
if(mod1.modType.equals(ModType.Speed) && mod1.getPercentMod() > 0){
ChatManager.chatSystemInfo(playerCharacter, "You Cannot Fly While Having A MovementBuff");
return true;
}
}
for(AbstractEffectModifier mod2 : ab.getPowerAction().getEffectsBase2().getModifiers()){
if(mod2.modType.equals(ModType.Speed) && mod2.getPercentMod() > 0){
ChatManager.chatSystemInfo(playerCharacter, "You Cannot Fly While Having A MovementBuff");
return true;
}
}
+1
View File
@@ -4830,6 +4830,7 @@ public class PlayerCharacter extends AbstractCharacter {
if(this.isFlying()){
if (!AbstractCharacter.CanFly(this)) {
GroundPlayer(this);
ChatManager.chatSystemInfo(this, "You Cannot Fly While Having A MovementBuff");
}
}