public void ChangeType(DuelType type) { DType = type; type.SetOptions(this); if (type is DDDuelType) Array.Resize(ref Participants, 4); }
public void Imput(DuelRune rune) { m_Running = true; Hidden = true; NoSummons = rune.Options[0]; NoArea = rune.Options[1]; NoMounts = rune.Options[2]; NoPots = rune.Options[3]; m_NoArts = rune.Options[4]; m_NoMagArmor = rune.Options[5]; m_NoMagWeps = rune.Options[6]; m_NoPoisWeps = rune.Options[7]; SpellWatch = rune.Options[8]; Participants = rune.Participants; DuelType = rune.DType; MoveParticipants(); }
private bool DuelTypeCheck(DuelType type, ISpell s) { if (type is UDFDuelType) return false; else if (type is TDFDuelType && !(s is PaladinSpell || s is NecromancerSpell)) return false; else if ((type is UMFDuelType || type is TMFDuelType) && (s is PaladinSpell || s is NecromancerSpell)) return false; // Fix by Silver: TDFDuelType should be TMFDuelType - Not working yet though return true; }