Hi, while leveling an alt I encountered the following problem:
The current check methods are not sufficient for neutral, i. e. "yellow", mobs.
If I use 'class' I almost have to stand next to the mob for its unit frame to fade in.
If I use 'custom_spell' with a harmful spell, e.g. "Fireball", the target unit frame will be faded in correctly, but the player frame will always be faded.
@ Solution @
can_attack = L['Can attack']
elseif check_method == "can_attack" then if UnitCanAttack("player", unit) then if enemy_is_in_range(unit) then return 1 elseif enemy_is_in_long_range(unit) then return (db.out_of_range_opacity + frame.layout_db.opacity_max) / 2 else return db.out_of_range_opacity end else return db.out_of_range_opacity end
else -- class
|deleted_2593853||Oct 10, 2009 at 14:57 UTC||Create|
- 1 comment
- Oct 10, 2009
- New - Issue has not had initial review yet.
- Enhancement - A change which is intended to better the project in some way
- Medium - Normal priority.