Sjd6795 8 Posted May 10, 2023 Share Posted May 10, 2023 Can we please get "Target Mana Percentage" condition added to the fight class creator? Also "Hostile Unit Near Target" can this function the same way as "Target" conditions when you have "For friends (party)" set to true. Link to comment https://wrobot.eu/forums/topic/15167-target-mana-percentage-condition/ Share on other sites More sharing options...
Matenia 628 Posted May 10, 2023 Share Posted May 10, 2023 (edited) return (UnitMana('target') / UnitManaMax('target')) < 0.5; There you go, Lua condition to only return true if enemy mana is < 50%. For a C# condition, It's ObjectManager.Target.ManaPercentage as per https://wrobot.eu/byme/doc/html/P-wManager.Wow.ObjectManager.WoWUnit.ManaPercentage.htm Edited May 11, 2023 by Matenia Link to comment https://wrobot.eu/forums/topic/15167-target-mana-percentage-condition/#findComment-68154 Share on other sites More sharing options...
Zer0 148 Posted May 10, 2023 Share Posted May 10, 2023 Shouldn't it be 0.5, instead of 50? Link to comment https://wrobot.eu/forums/topic/15167-target-mana-percentage-condition/#findComment-68156 Share on other sites More sharing options...
Matenia 628 Posted May 11, 2023 Share Posted May 11, 2023 Thanks, I changed the OP. I honestly hadn't touched WoW in years and only vaguely remembered that in some expansions, it already returns in percentage Zer0 1 Link to comment https://wrobot.eu/forums/topic/15167-target-mana-percentage-condition/#findComment-68158 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now