What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

digitalHaze

New Member
Joined
Nov 22, 2015
Messages
12
Im looking to add an enemy check to orbital strike and Plasma probe.

the Spells in question are written as follows:

Spell.CastOnGround("Orbital Strike"),
Spell.DoTGround("Plasma Probe", 8500),


Im looking to add an enemy check. Something like this:

Me.CurrentTarget.WeakOrGreater()

The reason is because I always end up spamming my friends during a run if I accidentally target them. Problem only seems to occur with these two spells. Every way ive tried so far refuses to compile. Anybody know the correct way to add the check to these two spells?
 
Looking though the files it seems there is no WeakOrGreater() but there is a c.IsHostile.

Still unable to get those spells to compile even using c.IsHostile. Any ideas?
 
Correct way is:
Code:
Spell.CastOnGround("Orbital Strike", ret => Me.CurrentTarget.StrongOrGreater()),
and
Code:
Spell.DoTGround("Plasma Probe", 9000, ret => Me.CurrentTarget.StrongOrGreater()),
 
Code:
public static bool WeakOrGreater(this TorCharacter unit)
        {
            if (unit != null) if (unit.Toughness >= CombatToughness.Weak) return true;
            return false;
        }

You can add this in Extensions.cs below StrongOrGreat() and then call it. I didn't test it though but it should work.

You can also use any other of this enum values -> http://docs.buddywing.com/html/T_Buddy_Swtor_CombatToughness.htm
There is also a "Player" enum there. Maybe you need that?

also c.IsHostile should be ->
Code:
Spell.CastOnGround("Orbital Strike", ret => Me.CurrentTarget.IsHostile);
 
Last edited:
Back
Top