What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

SpellManager.CastSpell on a member of a list

wownerds

New Member
Joined
Feb 15, 2011
Messages
1,385
Reaction score
30
Hey there,

is there a way to modify the CastSpell method to cast a buff on a specific member of List<WoWPlayer>?

My current try to work around this is (basicly, it justs casts Vigilance on the last member of the party):

Code:
        public bool Vigilance() //Buffing Vigilance on some party member
        {
			party = getParty(); 
            if (party.Count > 0 && !party[party.Count].HasAura("Vigilance")) 
            {
					party[party.Count].Target();
					if (CastSpell("Vigilance") == true)
						{
						slog(Color.Lime, "--> Vigilance <-- on: " + party[party.Count]);
						}
				return true;
            }
            return false;
        }

Tried several things, but apparently I did not figure out how to do it.

Thanks in advance,

Wownerds
 
Hey there,

is there a way to modify the CastSpell method to cast a buff on a specific member of List<WoWPlayer>?

My current try to work around this is (basicly, it justs casts Vigilance on the last member of the party):

Code:
        public bool Vigilance() //Buffing Vigilance on some party member
        {
			party = getParty(); 
            if (party.Count > 0 && !party[party.Count].HasAura("Vigilance")) 
            {
					party[party.Count].Target();
					if (CastSpell("Vigilance") == true)
						{
						slog(Color.Lime, "--> Vigilance <-- on: " + party[party.Count]);
						}
				return true;
            }
            return false;
        }

Tried several things, but apparently I did not figure out how to do it.

Thanks in advance,

Wownerds
Code:
foreach (WoWUnit PartyMember in Me.PartyMembers)
{
if(PartyMember.HasAura("Vigilance))
{
SpellManger.Cast("Vigiliance", PartyMember);
}
}
}
 
Back
Top