Ability.GetCastRange(string)

Here are the examples of the csharp api class Ability.GetCastRange(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: Ensage.Common
Source File: AbilityExtensions.cs
View license
public static float TravelDistance(this Ability ability)
        {
            var data = ability.CommonProperties();
            if (data == null)
            {
                return ability.GetCastRange();
            }

            var distance = ability.GetAbilityData(data.Distance);
            return distance > 0 ? distance : ability.GetCastRange();
        }

2. Example

Project: Ensage.Common
Source File: AbilityExtensions.cs
View license
public static bool CanHit(this Ability ability, Unit target, Vector3 sourcePosition, string abilityN/n ..... /n //View Source file for more details /n }