Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Shaman Offhand weapon buff.

Featured Replies

I've been looking through the fight class maker. I didn't see anything to make sure shaman has buff on offhand weapon. Anyone have a fix for this or am i not looking hard enough?

  • 11 months later...

I use these to detect shaman buffs and they work well

    internal static class EnhancementHelper
    {
        public static bool HasTwoHandEquipped =>
            Lua.LuaDoString<int>("result = IsEquippedItemType('Two-Hand')", "result") == 1;
        public static bool HasShieldEquipped =>
            Lua.LuaDoString<int>("result = IsEquippedItemType('Shields')", "result") == 1;
        public static bool HasMainHandEnhancement =>
            Lua.LuaDoString<int>("result = GetWeaponEnchantInfo()", "result") == 1;
        public static bool HasOffHandEnhancement =>
            Lua.LuaDoString<int>("_, _, _, result = GetWeaponEnchantInfo()", "result") == 1;
    }

my implementation looks like this

    internal class Imbue : TTask
    {
        readonly ISpellService spellService;

        public Imbue(
            ISpellService spellService)
        {
            this.spellService = spellService;
        }

        public override int Priority => 999;

        public override bool Activate()
        {
            return (spellService.RockbiterWeapon.KnownSpell
                || spellService.WindfuryWeapon.KnownSpell
                || spellService.FlametongueWeapon.KnownSpell)
                && (spellService.RockbiterWeapon.IsSpellUsable
                || spellService.WindfuryWeapon.IsSpellUsable
                || spellService.FlametongueWeapon.IsSpellUsable)
                &&  (!EnhancementHelper.HasMainHandEnhancement
                    || (!EnhancementHelper.HasShieldEquipped
                    && !EnhancementHelper.HasTwoHandEquipped
                    && !EnhancementHelper.HasOffHandEnhancement));
        }

        public override void Execute()
        {
            if (spellService.WindfuryWeapon.KnownSpell && !EnhancementHelper.HasMainHandEnhancement)
                spellService.WindfuryWeapon.Launch();
            else if (spellService.FlametongueWeapon.KnownSpell && EnhancementHelper.HasMainHandEnhancement && !EnhancementHelper.HasOffHandEnhancement)
                spellService.FlametongueWeapon.Launch();
            else
                spellService.RockbiterWeapon.Launch();
        }
    }

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.