mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-20 09:39:51 +08:00
Format code [skip actions]
This commit is contained in:
@@ -83,12 +83,13 @@ public final class AbilityManager extends BasePlayerManager {
|
||||
boolean skillInvincibility = modifier.state == AbilityModifier.State.Invincible;
|
||||
if (modifier.onAdded != null) {
|
||||
skillInvincibility |=
|
||||
!Arrays.stream(modifier.onAdded)
|
||||
.filter(
|
||||
action ->
|
||||
action.type == AbilityModifierAction.Type.AttachAbilityStateResistance
|
||||
&& action.resistanceListID == 11002)
|
||||
.toList().isEmpty();
|
||||
!Arrays.stream(modifier.onAdded)
|
||||
.filter(
|
||||
action ->
|
||||
action.type == AbilityModifierAction.Type.AttachAbilityStateResistance
|
||||
&& action.resistanceListID == 11002)
|
||||
.toList()
|
||||
.isEmpty();
|
||||
}
|
||||
|
||||
if (this.burstCasterId == entityId
|
||||
@@ -177,7 +178,12 @@ public final class AbilityManager extends BasePlayerManager {
|
||||
|
||||
public void onAbilityInvoke(AbilityInvokeEntry invoke) throws Exception {
|
||||
Grasscutter.getLogger()
|
||||
.trace("Ability invoke: {} {} ({}): {}", invoke, invoke.getArgumentType(), invoke.getArgumentTypeValue(), this.player.getScene().getEntityById(invoke.getEntityId()));
|
||||
.trace(
|
||||
"Ability invoke: {} {} ({}): {}",
|
||||
invoke,
|
||||
invoke.getArgumentType(),
|
||||
invoke.getArgumentTypeValue(),
|
||||
this.player.getScene().getEntityById(invoke.getEntityId()));
|
||||
var entity = this.player.getScene().getEntityById(invoke.getEntityId());
|
||||
if (entity != null) {
|
||||
Grasscutter.getLogger()
|
||||
@@ -204,7 +210,8 @@ public final class AbilityManager extends BasePlayerManager {
|
||||
|
||||
if (invoke.getHead().getTargetId() != 0) {
|
||||
Grasscutter.getLogger()
|
||||
.trace("Target: {}", this.player.getScene().getEntityById(invoke.getHead().getTargetId()));
|
||||
.trace(
|
||||
"Target: {}", this.player.getScene().getEntityById(invoke.getHead().getTargetId()));
|
||||
}
|
||||
if (invoke.getHead().getLocalId() != 0) {
|
||||
this.handleServerInvoke(invoke);
|
||||
|
||||
Reference in New Issue
Block a user