mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-22 08:29:18 +01:00
Merge pull request #1172 from Berna-L/fools23
This commit is contained in:
commit
e35d89b823
1 changed files with 3 additions and 2 deletions
|
|
@ -19,14 +19,15 @@ public static class YesHealMePluginWindow
|
||||||
private static readonly Vector2 Position = new(200, 200);
|
private static readonly Vector2 Position = new(200, 200);
|
||||||
private static readonly Vector2 Size = new(Length, SectionHeight);
|
private static readonly Vector2 Size = new(Length, SectionHeight);
|
||||||
|
|
||||||
private static IEnumerable<PlayerCharacter> Characters(PartyListAddon partyListAddon)
|
private static IEnumerable<PlayerCharacter?> Characters(PartyListAddon partyListAddon)
|
||||||
{
|
{
|
||||||
return partyListAddon.Any() ? partyListAddon.Select(pla => pla.PlayerCharacter) : new[] { Service<ClientState>.Get().LocalPlayer };
|
return partyListAddon.Any() ? partyListAddon.Select(pla => pla.PlayerCharacter) : new[] { Service<ClientState>.Get().LocalPlayer };
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<PlayerCharacter> HurtingCharacters(IEnumerable<PlayerCharacter> characters)
|
private static List<PlayerCharacter> HurtingCharacters(IEnumerable<PlayerCharacter?> characters)
|
||||||
{
|
{
|
||||||
return characters
|
return characters
|
||||||
|
.Where(pc => pc is not null)
|
||||||
.Where(pc => pc.CurrentHp < pc.MaxHp ||
|
.Where(pc => pc.CurrentHp < pc.MaxHp ||
|
||||||
Service<DalamudInterface>.Get()
|
Service<DalamudInterface>.Get()
|
||||||
.IsDevMenuOpen)
|
.IsDevMenuOpen)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue