Is there anything on the API that allows us to see if a target is being affected by Elemental Equilibrium?
m.ImplicitAffixes.Any(a => a.InternalName.Contains("ElementalEquilibrium"))
>to see if a target is being affected by Elemental Equilibrium?
What ya doing with that then?
wimm
This I guess or something silmilar
Code:m.ImplicitAffixes.Any(a => a.InternalName.Contains("ElementalEquilibrium"))
if (_leapSlamSlot != -1) {
// first case - target doesn't have elemental equilibrium
var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_leapSlamSlot);
if (skill.CanUse() && (!bestTarget.ImplicitAffixes.Any(a => a.InternalName.Contains("ElementalEquilibrium"))))
{
LokiPoe.InGameState.SkillBarPanel.UseAt(_leapSlamSlot, true, cachedPosition);
}
}
I finally had time to test it and it doesn't seem to be working I'm trying to use this code in order to only attack if the monster doesn't have Elemental Equilibrium, so it proccs it.
Code:if (_leapSlamSlot != -1) { // first case - target doesn't have elemental equilibrium var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_leapSlamSlot); if (skill.CanUse() && (!bestTarget.ImplicitAffixes.Any(a => a.InternalName.Contains("ElementalEquilibrium")))) { LokiPoe.InGameState.SkillBarPanel.UseAt(_leapSlamSlot, true, cachedPosition); } }
OHHHH, I thought you were talking about implicit affixes, you wanna know if the mob is affected by YOUR ee... lol then it must have an invisible Aura, rty slamming someone and dump the objects in the tools tab, get on Monsters subcat & find the mob you just slammed, see if it contains any aura related to EE.
Current Auras:
Name: Elemental Weakness, InternalName: curse_elemental_weakness, Description: You are cursed. You take more Elemental damage., IsInvisible: False, IsRemovable: False, Charges: 1, TimeLeft: 00:00:05.7770000, BuffType: 26, CasterId: 4584, OwnerId: 0
Name: Elemental Equilibrium, InternalName: elemental_equilibrium_buff, Description: You are affected by Elemental Equilibrium. Your resistances are temporarily altered., IsInvisible: False, IsRemovable: False, Charges: 1, TimeLeft: 00:00:00.5600000, BuffType: 26, CasterId: 4584, OwnerId: 0
Code:Current Auras: Name: Elemental Weakness, InternalName: curse_elemental_weakness, Description: You are cursed. You take more Elemental damage., IsInvisible: False, IsRemovable: False, Charges: 1, TimeLeft: 00:00:05.7770000, BuffType: 26, CasterId: 4584, OwnerId: 0 Name: Elemental Equilibrium, InternalName: elemental_equilibrium_buff, Description: You are affected by Elemental Equilibrium. Your resistances are temporarily altered., IsInvisible: False, IsRemovable: False, Charges: 1, TimeLeft: 00:00:00.5600000, BuffType: 26, CasterId: 4584, OwnerId: 0
I guess it is the elemental_equilibrium_buff then?
I guess so, try to use is with m.HasAura("elemental_equilibrium_buff") if it works as intented, let us know.
// Leap Slam to engage the fight
if (_leapSlamSlot != -1)
{
// first case - target doesn't have elemental equilibrium
var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_leapSlamSlot);
if (skill.CanUse() && (!bestTarget.Auras.Any(a => a.InternalName.Contains("elemental_equilibrium_buff"))))
{
LokiPoe.InGameState.SkillBarPanel.UseAt(_leapSlamSlot, true, cachedPosition);
}
}