Aura.Channel.World.Entities.Creature.GetAdjustedManaCost C# (CSharp) Method

GetAdjustedManaCost() public method

Returns given Mana cost adjusted for this creature, factoring in bonuses and modifications.
public GetAdjustedManaCost ( float baseVal ) : float
baseVal float
return float
		public float GetAdjustedManaCost(float baseVal)
		{
			var cost = baseVal;
			var mod = this.Inventory.GetManaUseModificator();

			// Positive values mean you use less Mana.
			if (mod != 0)
				cost *= (100 - mod) / 100f;

			return cost;
		}