Apoc
Well-Known Member
- Joined
- Jan 16, 2010
- Messages
- 2,790
- Reaction score
- 94
There have been a few questions recently about dealing with ground-effects (such as fire, ground AOE heals, Blizzard, Flame Strike, etc).
What (I assume) hasn't been explained, is that Honorbuddy contains support to pull such things from the game client so you can either get in, or out, of ground effects.
The following is a small example (and very, very, basic, so don't expect it as an end-all solution!) on how to use WoWDynamicObject's:
It will simply look for a ground healing effect (closest first), and move to its dead center.
The same can be done for harmful effects (by reversing the logic, and finding a safe place to stand for things such as fire, etc). This will allow your CCs, bots, plugins, etc, to deal with the new Cataclysm mechanics, where there is always something you shouldn't be standing in!
P.S. This support has been in Honorbuddy for nearly a month now, however it may not have been explained well enough!
What (I assume) hasn't been explained, is that Honorbuddy contains support to pull such things from the game client so you can either get in, or out, of ground effects.
The following is a small example (and very, very, basic, so don't expect it as an end-all solution!) on how to use WoWDynamicObject's:
Code:
public static void GetInFriendlyGroundHeal()
{
var go =
ObjectManager.GetObjectsOfType<WoWDynamicObject>().Where(
dgo => dgo.Caster.IsFriendly && dgo.Spell.Mechanic == WoWSpellMechanic.Healing).
OrderBy(dgo => dgo.DistanceSqr).FirstOrDefault();
if (go != null)
{
Navigator.MoveTo(go.Location);
}
}
It will simply look for a ground healing effect (closest first), and move to its dead center.
The same can be done for harmful effects (by reversing the logic, and finding a safe place to stand for things such as fire, etc). This will allow your CCs, bots, plugins, etc, to deal with the new Cataclysm mechanics, where there is always something you shouldn't be standing in!
P.S. This support has been in Honorbuddy for nearly a month now, however it may not have been explained well enough!