Ama
New Member
- Joined
- Jun 6, 2011
- Messages
- 1,171
- Reaction score
- 33
I noticed i've been rewriting and reusing lots of methods in all the CCs I have worked on, so I wanted to write a cast manager to simplify the code in the CCs. I am not finished, but I wanted to do a small iteration and get feedback before doing more work.
Here is the class file: CastHelper.cs
I'm also putting checks for dots in. So the CC doesn't do checks, it just calls for spells. If the spell can be cast and needs to be cast, it will cast it, log it, and return true.
The use would look like this...
One thing I am trying to figure out... is there a way for me to make a list in which items added to the list will expire and remove themselves?
Here is the class file: CastHelper.cs
I'm also putting checks for dots in. So the CC doesn't do checks, it just calls for spells. If the spell can be cast and needs to be cast, it will cast it, log it, and return true.
The use would look like this...
PHP:
Class MyCC
{
CastHelper.CastHelper Cast = new CastHelper.CastHelper();
public override void Combat()
{
if(Cast.Buff("Seal if Truth"))
return;
if(Cast.BuffGroup("Blessing of Might"))
return;
if(Cast.Spell("Hand of Reckoning", 30)) //30 is distance to target
return;
if(Cast.Spell("Crusader Strike"))
return;
or this...
Cast.Buff("Seal if Truth");
Cast.BuffGroup("Blessing of Might");
Cast.Spell("Hand of Reckoning", 30); //30 is distance to target
Cast.Spell("Crusader Strike");
}
}
One thing I am trying to figure out... is there a way for me to make a list in which items added to the list will expire and remove themselves?






