January 6, 20188 yr Hello robot wizards! I am trying to improve my healer fightclass by understanding which classes are in the party The below should work in theory, but I cannot get it to work. Anyone have done a similar function before? Thanks in advance! private bool _Partyclass_Druid; public void UpdatePartyComposition() { _Partyclass_Druid = false; var partyMembers = Party.GetPartyGUIDHomeAndInstance(); if (partyMembers.Any()) { foreach (Int128 u in partyMembers) { if (u.WowClass = "Druid") { _Partyclass_Druid = true; } // Repeat for other clases } } }
January 8, 20188 yr Hello, you code is bad, it is more like: private bool _Partyclass_Druid; public void UpdatePartyComposition() { _Partyclass_Druid = false; var partyMembers = Party.GetPartyHomeAndInstance(); if (partyMembers.Any()) { foreach (var u in partyMembers) { if (u.WowClass == WoWClass.Druid) { _Partyclass_Druid = true; } // Repeat for other clases } } }
January 8, 20188 yr bool partyHasDruid = Party.GetPartyHomeAndInstance().Any(u => u.WowClass == WowClass.Druid);
Create an account or sign in to comment