예제 #1
0
		public override bool Prepare(Monster m)
		{
			if (modifiedAbility.IsNull)
			{
				if (m.Abilities.Count == 0)
				{
					Complain(3);
					return false;
				}
				else
				{
					InputSelectAbility d = new InputSelectAbility(m);
					if (d.ShowDialog() == DialogResult.OK)
					{
						if (d.GetSelectedAbility().IsNull)
						{
							Complain(3);
							return false;
						}
						else
						{
							modifiedAbility = d.GetSelectedAbility();
							return true;
						}
					}
					else
					{
						return false;
					}
				}
			}
			else
			{
				return true;
			}
		}
예제 #2
0
		public override void SetupParent(MonsterAbility parent)
		{
			modifiedAbility = (AbstractAbility)parent;
		}