全部文本 #21647 原始 编辑

Something

公开 text v1 · 不可变
·已发布 2005-08-30 21:47 UTC
渲染后的文本正文
		public bool LocateWaterwalk()
		{
			if (wow.HighestKnownSpells.Contains("Water Walking"))
			{
				if (wow.Buffs["Water Walking"] == null || wow.Buffs["Water Walking"].TimeLeft < 30 )
				{
					// stop fishing/lure apply if any, they will start again
					wow.SendScript("SpellStopCasting()");

					while (wow.CastSpellByName("Water Walking"))
					{
						// do things :x?

						Thread.Sleep(100);
					}
				}
			}
			else
			{
				// not a shaman or doesn't have the skill yet
				ApplicationContext.Instance.Settings.UseWaterwalk = false;
			}

			return false;
		}