-
Contributor
Command Skeleton Target
Any ways to check my active skill target ?
-
Contributor
Originally Posted by
s4000
Any ways to check my active skill target ?
What about SelectedMonster1 and/or SelectedMonster2 in IGameController?
TopMonsterHealthBarPlugin uses this info.
-
Member
Not sure if there is a better method.
Code:
IPlayerSkill skill = Hud.Game.Me.Powers.UsedSkills.FirstOrDefault(s => s.SnoPower.Sno == Hud.Sno.SnoPowers.Necromancer_CommandSkeletons.Sno);
if (skill == null) return;
IAttribute attr;
switch (skill.Rune)
{
case 0:
attr = Hud.Sno.Attributes.Power_Buff_4_Visual_Effect_A;
break;
case 1:
attr = Hud.Sno.Attributes.Power_Buff_4_Visual_Effect_B;
break;
case 2:
attr = Hud.Sno.Attributes.Power_Buff_4_Visual_Effect_C;
break;
case 3:
attr = Hud.Sno.Attributes.Power_Buff_4_Visual_Effect_D;
break;
case 4:
attr = Hud.Sno.Attributes.Power_Buff_4_Visual_Effect_E;
break;
default:
attr = Hud.Sno.Attributes.Power_Buff_4_Visual_Effect_None;
break;
}
foreach (IMonster monster in Hud.Game.AliveMonsters)
{
if (monster.GetAttributeValueAsUInt(attr, Hud.Sno.SnoPowers.Necromancer_CommandSkeletons.Sno, 0) == 1)
{
...
}
}
-
Post Thanks / Like - 1 Thanks
RNN (1 members gave Thanks to esix for this useful post)