Aura.Channel.Skills.Base.ProductionSkill.CheckMana C# (CSharp) Метод

CheckMana() приватный Метод

Checks if creature has enough mana to produce product, returns false if not. Handles notices.
private CheckMana ( Creature creature, ProductionData productData ) : bool
creature Aura.Channel.World.Entities.Creature
productData ProductionData
Результат bool
		private bool CheckMana(Creature creature, ProductionData productData)
		{
			// Sanity check, client checks this as well.
			if (creature.Mana < productData.Mana)
			{
				Send.Notice(creature, Localization.Get("You do not have enough MP to make that many at once."));
				return false;
			}

			return true;
		}