Class FriendlyTargetingStrategy


public class FriendlyTargetingStrategy extends OtherEntityTargetingStrategy

A targeting strategy that selects friendly entities as ability targets.

This strategy extends OtherEntityTargetingStrategy and is preconfigured to include only allied entities while excluding the executing entity itself. It is typically used for support abilities such as heals, buffs, or shields that should affect friends but not foes or the caster.

See Also:
  • Constructor Details

    • FriendlyTargetingStrategy

      public FriendlyTargetingStrategy(boolean multiTarget, boolean sortByDistance, boolean includeDead)
      Creates a new FriendlyTargetingStrategy.
      Parameters:
      multiTarget - if true, the strategy may return multiple matching targets; otherwise only a single target is selected.
      sortByDistance - if true, the resulting targets are ordered by their distance to the executing entity (closest first).
      includeDead - if true, dead entities are considered valid targets (useful for resurrection-like abilities); otherwise only living entities are selected.