Exemple #1
0
    private bool doFinishers()
    {
        if (OutlawSettings.CurrentSetting.EnableBetweenTheEyes &&
            BetweenTheEyes.KnownSpell &&
            BetweenTheEyes.IsSpellUsable &&
            MyHelpers.getTargetDistance() <= MyHelpers.getDistanceRange() &&
            MyHelpers.getComboPoint() >= 6)
        {
            MyHelpers.castSpell(BetweenTheEyes.Name);
            Lua.LuaDoString(@"dRotationFrame.text:SetText(""Between the Eyes"")");
            return(true);
        }

        if (OutlawSettings.CurrentSetting.EnableRolltheBones &&
            RolltheBones.KnownSpell &&
            RolltheBones.IsSpellUsable &&
            !BetweenTheEyes.IsSpellUsable &&
            MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() &&
            MyHelpers.getComboPoint() >= 6 &&
            MyHelpers.rtbReroll()
            )
        {
            MyHelpers.castSpell(RolltheBones.Name);
            Lua.LuaDoString(@"dRotationFrame.text:SetText(""Roll the Bones"")");
            return(true);
        }

        if (OutlawSettings.CurrentSetting.EnableDispatch &&
            Dispatch.KnownSpell &&
            Dispatch.IsSpellUsable &&
            !BetweenTheEyes.IsSpellUsable &&
            MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() &&
            MyHelpers.getComboPoint() >= 6 - MyHelpers.cpReduction())
        {
            MyHelpers.castSpell(Dispatch.Name);
            Lua.LuaDoString("dRotationFrame.text:SetText(\"Dispatch " + MyHelpers.getTargetDistance() + " / " + MyHelpers.GetMeleeRangeWithTarget() + "\")");
            return(true);
        }

        return(false);
    }