Druid Flying with Auto Dismount not working with swift flight form. #47


  • New
  • Defect
Open
Assigned to yssaril
  • _ForgeUser210462 created this issue Dec 23, 2010

    What steps will reproduce the problem?
    1. In a flying area, turn on swift flight form. (I have swift and issue doesn't happen with any other flying mount.)
    2. When you start to fly, the mounted macro button will change to ground mount macro.
    3.

    What is the expected output? What do you see instead?
    I expected to see the flying macro with dismount and to be able to leave flight form. It will tell me I can't mount. If I am on ground it will mount me onto ground mount.

    What version of the product are you using?
    v2.2.11 for 4.0.3a on 9 Dec 2010

    Do you have an error log of what happened?
    No I do not.

    Please provide any additional information below.
    I made a new ground mount macro using the default Ground with dismount. Just added "/cast [flyable] <ff>" to the beginning and it is working for now, with an error saying I can't do that while moving.

  • _ForgeUser210462 added the tags New Defect Dec 23, 2010
  • _ForgeUser210462 added an attachment Mounted_Broken.jpg Dec 23, 2010

    Mounted_Broken.jpg

    <p>Shows Ground Fixed(under ground macro) is used instead of flying macro.</p>

  • _ForgeUser57909 posted a comment Dec 31, 2010

    This one is quite annoying when you are trying to get into cat form quickly.

  • _ForgeUser210462 posted a comment Jan 24, 2011

    I added [flyable] in front of the <ff> in "/cast <ff>" part of the macro so that when you are not in a flyable area, the tooltip will still show the ground mount instead of always showing the flying mount.

  • _ForgeUser210462 edited description Jan 24, 2011
  • xodiv posted a comment Apr 29, 2011

    This bug occurs if you mount when in the air (e.g, by jumping and casting swift flight form, or casting it while you are falling).

    The reason is that the "should you use a flyable mount" check in the addon checks whether you can cast "Albino Drake", which apparently will return success even if you don't know it. BUT, it won't work if you are falling because you can only cast instant-cast spells.

    Inside the file Core.lua you can find this part:

    function MNT2:SPELL_UPDATE_USABLE()
        self.state.isIndoors = IsIndoors()
        self.state.isSwimming = IsSwimming()
        self.state.isFlyable = IsFlyableArea() and IsOutdoors() and (self.db.char.mount_skill > 150) and IsUsableSpell(60025)
    end
    

    and remove the IsUsableSpell part like this

    function MNT2:SPELL_UPDATE_USABLE()
        self.state.isIndoors = IsIndoors()
        self.state.isSwimming = IsSwimming()
        self.state.isFlyable = IsFlyableArea() and IsOutdoors() and (self.db.char.mount_skill > 150)
    end
    

    that seems to fix it for me but I don't know what other effects it might have on other mounts / if you aren't a druid.


To post a comment, please login or register a new account.