Or how else to get a percentage of the buff?
PHP Code:
if(Hud.Game.Me.Powers.BuffIsActive(Hud.Sno.SnoPowers.KarleisPoint.Sno)){
if(Hud.Game.Items.FirstOrDefault(item => item.Location == ItemLocation.LeftHand).Perfections.FirstOrDefault(p => p.Attribute.Index == 1288).Modifier == Hud.Sno.SnoPowers.KarleisPoint.Sno){
BuffCur=Hud.Game.Items.FirstOrDefault(item => item.Location == ItemLocation.LeftHand).Perfections.FirstOrDefault(p => p.Attribute.Index == 1288).Cur;
}
}
decided so
PHP Code:
var items = Hud.Game.Items.FirstOrDefault(item => item.Location == ItemLocation.LeftHand);
if(itemsl.Perfections.Any(p => p.Attribute.Index == 1288)){
if(items.Perfections.FirstOrDefault(p => p.Attribute.Index == 1288).Modifier== Hud.Sno.SnoPowers.KarleisPoint.Sno){
BuffCur = items.Perfections.FirstOrDefault(p => p.Attribute.Index == 1288).Cur;}}