crabe 0 Posted February 1, 2022 Share Posted February 1, 2022 I'm trying to use the fightclass builder to make a warrior fight class and I'm running into a issue where my character tries to use rend on targets that are immune to it. Is there a way around this? Link to comment https://wrobot.eu/forums/topic/13921-target-is-elemental-or-mechanical/ Share on other sites More sharing options...
Matenia 628 Posted February 2, 2022 Share Posted February 2, 2022 local creatureType = UnitCreatureType("target") return creatureType == "Elemental" or creatureType == "Mechanical" Hopefully makes it more readable crabe 1 Link to comment https://wrobot.eu/forums/topic/13921-target-is-elemental-or-mechanical/#findComment-64735 Share on other sites More sharing options...
crabe 0 Posted June 8, 2022 Author Share Posted June 8, 2022 Does anyone know how to input this into the Lua Script condition in the Fight Class Editor? I'm not familiar with Lua. Thank you Link to comment https://wrobot.eu/forums/topic/13921-target-is-elemental-or-mechanical/#findComment-65883 Share on other sites More sharing options...
Apexx 60 Posted June 10, 2022 Share Posted June 10, 2022 (edited) Try this -- In the fight class editor, there is a box under the Name of the fight class with pet options as well. Look for "Custom Code" or "Additional C# Code".. I cannot remember off the top of my head right now.. Enter: internal static bool CanBleed(WoWUnit unit) { return unit.CreatureTypeTarget != "Elemental" && unit.CreatureTypeTarget != "Mechanical"; } Then in the selected spell conditions add C# check and type: CanBleed(ObjectManager.Target) Edited June 10, 2022 by Apexx Link to comment https://wrobot.eu/forums/topic/13921-target-is-elemental-or-mechanical/#findComment-65892 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