Jump to content

Target is Elemental or Mechanical


crabe

Recommended Posts

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
Share on other sites

  • 4 months later...

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 by Apexx
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...