Deactivate() 공개 메소드

public Deactivate ( CreatureStates state ) : void
state CreatureStates
리턴 void
예제 #1
0
파일: Rest.cs 프로젝트: xKamuna/aura
		/// <summary>
		/// Stops rest skill, called when moving or stopping it.
		/// </summary>
		/// <param name="creature"></param>
		/// <param name="skill"></param>
		/// <param name="dict"></param>
		/// <returns></returns>
		public override StartStopResult Stop(Creature creature, Skill skill, MabiDictionary dict)
		{
			creature.Deactivate(CreatureStates.SitDown);
			if (skill.Info.Rank >= SkillRank.R9)
				creature.Deactivate(CreatureStatesEx.RestR9);

			Send.StandUp(creature);

			creature.Regens.Remove("Rest");

			if (creature.Temp.SittingProp != null)
				this.RemoveChair(creature);

			return StartStopResult.Okay;
		}