// Class that contains common behavior for all WOD LFRs
public abstract class WoDLfr : Dungeon
{
protected static LocalPlayer Me
{
get { return StyxWoW.Me; }
}
public override void OnEnter()
{
if (Me.IsTank())
{
Alert.Show(
"Tanking Not Supported",
string.Format(
"Tanking is not supported in the {0} script. If you wish to stay in raid and play manually then press 'Continue'. Otherwise you will automatically leave raid.",
Name),
30,
true,
true,
null,
() => Lua.DoString("LeaveParty()"),
"Continue",
"Leave");
}
else
{
Alert.Show(
"Do Not AFK",
"It is highly recommended you do not afk while in a raid and be prepared to intervene if needed in the event something goes wrong or you're asked to perform a certain task.",
20,
true,
false,
null,
null,
"Ok");
}
base.OnEnter();
}