target cast bar does not dsappear when deselecting/losing target #16


  • Defect
  • Fixed
Closed
Assigned to _ForgeUser18754
  • _ForgeUser737898 created this issue Feb 25, 2009

    What steps will reproduce the problem?
    1. start fishinh (or any other channelled spell)
    2. select yourself as target
    3. deselect target (so you don't have anything in target)

    What is the expected output? What do you see instead?
    I expcet to see the target's casting bar after step #2 and I expect the target's casting bar to disappear when deselecting/losing my target in step #3.

    The target's casting bar is displayed until the end of channelling time although there is no target anymore

    This of course not only when targeting oneself but always when you deselect your target or select a target you specified "don't display casting bar" after target started channelling a spell

    What version of the product are you using?
    r010

    Do you have an error log of what happened?
    no error log

    Please provide any additional information below.

    if not UnitExists('target') then
            return
        end
        if not db.profile.showfriendly then
            if UnitIsFriend('player', 'target') then
                return
            end
        end
        if not db.profile.showhostile then
            if UnitIsEnemy('player', 'target') then
                return
            end
        end

    should be changed to:
    if not UnitExists('target') then
            castBarParent:Hide()
            return
        end
        if not db.profile.showfriendly then
            if UnitIsFriend('player', 'target') then
                castBarParent:Hide()
                return
            end
        end
        if not db.profile.showhostile then
            if UnitIsEnemy('player', 'target') then
                castBarParent:Hide()
                return
            end
        end

    code example is from function QuartzTarget:PLAYER_TARGET_CHANGED()in file Quartz_Target.lua, affects Quartz_Focus also

  • _ForgeUser737898 added the tags New Defect Feb 25, 2009
  • _ForgeUser737898 posted a comment Feb 25, 2009

    code example above is from function QuartzTarget:PLAYER_TARGET_CHANGED() in Quartz_Target.lua^^

  • _ForgeUser737898 edited description Feb 25, 2009
  • nevcairiel removed a tag New Feb 6, 2010
  • nevcairiel added a tag Fixed Feb 6, 2010
  • nevcairiel closed issue Feb 6, 2010

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