public bq.f a(bq.e A_0) { bq.f f = new bq.f(); foreach (bq.e e in this.a) { f.a.Add(e); } f.a.Add(A_0); f.b = A_0.a(this.b); return(f); }
public static MySpell a(int A_0, int A_1, int A_2, int A_3, bool A_4, bool A_5) { d.Clear(); if (A_4) { foreach (v v in PluginCore.cq.x.c["DrainSpellOptions"].d()) { MySpell spell = PluginCore.cq.e.b(k.e(v[0])); if (PluginCore.cq.h.c(spell)) { d.Add(new bq.d(spell, k.e(v[1]), k.f(v[2]), k.f(v[4]), k.e(v[3]))); } } } foreach (v v2 in PluginCore.cq.x.c["MartyrSpellOptions"].d()) { if ((A_5 && (k.e(v2[0]) == 0xeea)) || (!A_5 && (k.e(v2[0]) != 0xeea))) { MySpell spell2 = PluginCore.cq.e.b(k.e(v2[0])); if (PluginCore.cq.h.c(spell2)) { d.Add(new bq.a(spell2, k.e(v2[1]), k.f(v2[2]), k.f(v2[3]))); } } } d.Add(bq.b.a()); bq.f f = new bq.f { b = new bq.c(A_0, A_1, A_3) }; bq.f f2 = b(f, A_2); if ((f2 == null) || (f2.a.Count <= 0)) { return(null); } if (f2.a[0] is bq.b) { return(null); } return(f2.a[0].b); }
private static f a(f A_0, int A_1) { bq.f f = A_0; bq.f f2 = null; double minValue = double.MinValue; bool flag = false; foreach (bq.e e in d) { if (((f.b.b != f.b.c) || (!(e is bq.d) && !(e is bq.b))) && (!(e is bq.d) || (f.b.a >= 0x19))) { bq.f f3 = f.a(e); if (f3.b.b >= A_1) { flag = true; if (f2 == null) { f2 = f3; minValue = 0.0; } else if (!f2.c()) { if (f3.c()) { f2 = f3; } else { double num2 = 0.0; double num3 = 0.0; if (e is bq.a) { num2 = 3200.0; num3 = 180.0; } double num4 = ((num3 + f.b.a) - f3.b.a) / ((num2 + f3.b.d) - f.b.d); if (num4 > minValue) { minValue = num4; f2 = f3; } } } else if (f3.c() && f2.c()) { double num5 = f3.b.d - f.b.d; double num6 = f2.b.d - f.b.d; if (num5 < num6) { f2 = f3; } } } } } if (!flag) { foreach (bq.e e2 in d) { if (((f.b.b != f.b.c) || (!(e2 is bq.d) && !(e2 is bq.b))) && (!(e2 is bq.d) || (f.b.a >= 0x19))) { bq.f f4 = f.a(e2); if (f2 == null) { f2 = f4; minValue = 0.0; } else if (!f2.c()) { if (f4.c()) { f2 = f4; } else { double num7 = 0.0; double num8 = 0.0; if (e2 is bq.a) { num7 = 3200.0; num8 = 180.0; } double num9 = ((num8 + f.b.a) - f4.b.a) / ((num7 + f4.b.d) - f.b.d); if (num9 > minValue) { minValue = num9; f2 = f4; } } } else if (f4.c() && f2.c()) { double num10 = f4.b.d - f.b.d; double num11 = f2.b.d - f.b.d; if (num10 < num11) { f2 = f4; } } } } } if (f2 == null) { f2 = f.a(bq.b.a()); } return(f2); }