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):
Tried several things, but apparently I did not figure out how to do it.
Thanks in advance,
Wownerds
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