All pastes #21759 Raw Edit

Someone

public text v1 · immutable
#21759 ·published 2005-08-31 18:35 UTC
rendered paste body
		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;
		}