Jump to content
  • Polymorphed target is wrongfully blacklisted


    Matenia
    • Version: All Product: WRobot General Type: Bug Status: Duplicate

    Hey Droidz,

    I have a problem with polymorphed targets getting wrongfully blacklisted. When I fight my main target, then polymorph a second target and the first one dies:

    - it never attacks polymorph
    - when polymorph breaks, it recognizes "IsAttacked" state but never attacks back (my fightclass works if (Fight.InFight || Conditions.IsAttackedAndCannotIgnore) && ObjectManager.Target.IsAttackable))

    I use custom code to attack the polied target and start a fight, but it seems to not work:

    if(!Fight.InFight && !Me.InCombat && !_IsMoving)
                        {
                            WoWUnit polyTarget = ObjectManager.GetObjectWoWUnit().Where(u => u.IsValid && u.HaveDebuff("Polymorph") && u.GetDistance < 15 && u.IsAttackable).FirstOrDefault();
                            if (polyTarget != null)
                            {
                                Logging.WriteDebug("Found polied target " + polyTarget.Name + " attacking!");
                                if (wManagerSetting.IsBlackListed(polyTarget.Guid))
                                {
                                    wManagerSetting.RemoveBlackList(polyTarget.Guid);
                                }
                                if (CombatUtil.CanWand())
                                {
                                    CombatUtil.CastSpell(Shoot, polyTarget);
                                }
                                else
                                {
                                    CombatUtil.CastSpell(Frostbolt, polyTarget);
                                }
                                Fight.StartFight(polyTarget.Guid);
                            }
                        }

    Same problem on vanilla and TBC - any ideas?



    User Feedback

    Recommended Comments



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...