Aura.Channel.Skills.Combat.FinalHit.Ready C# (CSharp) Метод

Ready() публичный Метод

Readies the skill, called when cast is over.
public Ready ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
Результат bool
		public override bool Ready(Creature creature, Skill skill, Packet packet)
		{
			skill.Stacks = 1;

			creature.Temp.FinalHitKillCount = 0;
			creature.Temp.FinalHitKillCountStrong = 0;
			creature.Temp.FinalHitKillCountAwful = 0;
			creature.Temp.FinalHitKillCountBoss = 0;

			// Cancel skill after its duration if creature is not a dev.
			// This was the official behavior before control over cancelation
			// was given to the server as well, the client still doesn't show
			// the duration bar depleting.
			if (!creature.IsDev)
				creature.Skills.CancleAfter(skill.Info.Id, TimeSpan.FromSeconds(skill.RankData.Var1));

			Send.Effect(creature, Effect.FinalHit, (byte)1, (byte)1);
			Send.SkillReady(creature, skill.Info.Id);

			return true;
		}