Aura.Channel.Skills.Combat.Smash.GetDamage C# (CSharp) Метод

GetDamage() защищенный Метод

Returns the raw damage to be done.
protected GetDamage ( Creature attacker, Skill skill ) : float
attacker Aura.Channel.World.Entities.Creature
skill Skill
Результат float
		protected float GetDamage(Creature attacker, Skill skill)
		{
			var result = attacker.GetRndTotalDamage();
			result *= skill.RankData.Var1 / 100f;

			// +20% dmg for 2H
			if (attacker.RightHand != null && attacker.RightHand.Data.Type == ItemType.Weapon2H)
				result *= 1.20f;

			return result;
		}