全部文本 #21759 原始 编辑

Someone

公开 text v1 · 不可变
·已发布 2005-08-31 18:35 UTC
渲染后的文本正文
		private 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()");

					wow.LeftClick(wow.Player);
					wow.CastSpellByName("Water Walking")
					wow.SendScript("Jump()");
					Thread.Sleep(100);
					
					return true;
				}
				else
				{
					// buff active
					return false;
				}
			}
			else
			{
				// not a shaman or doesn't have the skill yet
				ApplicationContext.Instance.Settings.UseWaterwalk = false;
			}

			return false;
		}