Ejemplo n.º 1
0
 protected void SetTotems()
 {
     TotemHelper.SetTotemSlot(MultiCastSlot.ElementsEarth, Totem.Stoneskin);
     TotemHelper.SetTotemSlot(MultiCastSlot.ElementsFire, Totem.Searing); // totem of wrath?
     TotemHelper.SetTotemSlot(MultiCastSlot.ElementsWater, Totem.HealingStream);
     TotemHelper.SetTotemSlot(MultiCastSlot.ElementsAir, Totem.WrathOfAir);
 }
Ejemplo n.º 2
0
 protected override void OnAfterAction(RoutineAction action)
 {
     // Remove Totems
     if (!Helper.InCombat)
     {
         if (TotemHelper.RecallTotems())
         {
             Sleep(600);
         }
     }
 }
Ejemplo n.º 3
0
        protected override void OnBeforeAction(RoutineAction action)
        {
            if (!_totemsSet)
            {
                SetTotems();
                _totemsSet = true;
            }

            if (Helper.InCombat && Manager.LocalPlayer.Totems.Count() == 0)
            {
                if (TotemHelper.CallTotems())
                {
                    Sleep(600);
                }
            }

            // TODO: fix
            //var ft = Manager.Spellbook["Flametongue Weapon"];
            //if (ft != null && ft.IsValid && ft.IsReady) // 5 appears to be flametongue weapon
            //{
            //    var mainhand = Manager.LocalPlayer.GetEquippedItem(EquipSlot.MainHand);
            //    if (mainhand.IsValid && mainhand.Enchants.Count(x => x.Id == (uint)WeaponEnchantments.Flametongue) == 0)
            //    {
            //        Log.WriteLine("Applying Flametongue Weapon to Main Hand weapon");
            //        ft.Cast();
            //        Sleep(600);
            //    }
            //}

            // Instant Lava Burst
            if (action is HarmfulSpellRoutine)
            {
                var haction = action as HarmfulSpellRoutine;
                if (haction.SpellName == "Lava Burst")
                {
                    WoWSpell cd = Manager.Spellbook["Elemental Mastery"];
                    if (cd != null && cd.IsValid && cd.IsReady)
                    {
                        Log.WriteLine("Popping Elemental Mastery for instant Lava Burst");
                        cd.Cast();
                        Sleep(600);
                    }
                }
            }
        }