PitBull Unit Frames 4.0

927 - Adjusting Totems module to include Wild Mushrooms

One of the balance druid theorycrafters found out that Wild Mushrooms use the same frame as totems and gave a workaround to make the timers show up for them. This is very useful so we can verify that all mushrooms have been place before casting Detonate on add-heavy fights like Maloriak and Magmaw. I'd love to see Pitbull's module adjusted so that balance druids may take advantage of it as well.

Calculatéd posted his findings and the workaround here, if it helps provide more info:
http://us.battle.net/wow/en/forum/topic/981608288?page=29#566

User When Change
Everlu Feb 16, 2011 at 21:17 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of TremaineZdC TremaineZdC May 12, 2011 at 21:30 UTC - 0 likes

    Hi,

    for what it's worth I had some spare time some days ago and whipped up a quick hack adding support for mushrooms to PitBull4_Totems. (It's possible with changing 4 lines, and one line is a cosmetic change only, so it displays 4 slots for shamans and 3 for druids)

    Maybe it's of some use for someone - I'm not quite sure having a shaman-centered plugin handle druids is the right way, but for now it works like a charm - and did you know you can cancel individual mushrooms?

    Diff is attached, hope this is the correct way.

    diff -uNr PitBull4_Totems.orig/PitBull4_Totems.toc PitBull4_Totems/PitBull4_Tote ms.toc
    --- PitBull4_Totems.orig/PitBull4_Totems.toc    2011-04-28 01:43:50.000000000 +0 200
    +++ PitBull4_Totems/PitBull4_Totems.toc 2011-05-06 20:38:05.000000000 +0200
    @@ -20,7 +20,7 @@
     ## LoadOnDemand: 1
     ## Dependencies: PitBull4
     ## Version: v4.0.0-beta28
    -## X-PitBull4-Condition: return select(2, UnitClass("player")) == "SHAMAN"
    +## X-PitBull4-Condition: return ((select(2, UnitClass("player")) == "SHAMAN") or (select(2, UnitClass("player")) == "DRUID"))
     ## X-Curse-Packaged-Version: v4.0.0-beta28
     ## X-Curse-Project-Name: PitBull Unit Frames 4.0
     ## X-Curse-Project-ID: pitbull4
    diff -uNr PitBull4_Totems.orig/Totems.lua PitBull4_Totems/Totems.lua
    --- PitBull4_Totems.orig/Totems.lua     2011-04-28 01:43:50.000000000 +0200
    +++ PitBull4_Totems/Totems.lua  2011-05-06 21:03:27.000000000 +0200
    @@ -1,7 +1,7 @@
     if select(6, GetAddOnInfo("PitBull4_" .. (debugstack():match("[o%.][d%.][u%.]le s\\(.-)\\") or ""))) ~= "MISSING" then return end
     
    -if select(2, UnitClass('player')) ~= "SHAMAN" then
    -       -- don't load if player is not a shaman.
    +if ((select(2, UnitClass('player')) ~= "SHAMAN") and (select(2, UnitClass('player')) ~= "DRUID")) then
    +       -- don't load if player is not a shaman or druid.
            return
     end
     
    @@ -14,7 +14,7 @@
     local DEBUG = PitBull4.DEBUG
     
     -- CONSTANTS ----------------------------------------------------------------
    -local MAX_TOTEMS = MAX_TOTEMS or 4 -- comes from blizzard's totem frame lua
    +local MAX_TOTEMS = (select(2, UnitClass('player')) == "DRUID") and 3 or (MAX_TOTEMS or 4) -- comes from blizzard's totem frame lua
     local FIRE_TOTEM_SLOT  = FIRE_TOTEM_SLOT  or 1
     local EARTH_TOTEM_SLOT = EARTH_TOTEM_SLOT or 2
     local WATER_TOTEM_SLOT = WATER_TOTEM_SLOT or 3
    
  • 1 comment

Facts

Last updated
Apr 10, 2012
Reported
Feb 16, 2011
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
2
Component
Totems

Reported by

Possible assignees