public HealEffect(int MinValue, int MaxValue, int Modifier) { modifier = Modifier; minValue = MinValue; maxValue = MaxValue; AoeMode = AoeMode.None; }
public Buff(int id, string name, BuffType buffType, MagicType magicType, AoeMode aoeMode, int radius, float duration, int currentStucks, int maxStucks, bool hasStucks, bool isStuckableSameCaster, bool isStuckableWithOthers, bool hasAbsorb = false) { Id = id; CurrentStucks = currentStucks; MaxStucks = maxStucks; HasStucks = hasStucks; Name = name; BuffType = buffType; NeedsRemoval = false; HasAbsorbAura = hasAbsorb; this.Seconds = duration; if (duration == -1) { Duration = TimeSpan.FromSeconds(1); } else { Duration = TimeSpan.FromSeconds(duration); } TimeLeft = Duration; MagicType = magicType; AoeMode = aoeMode; if (AoeMode == AoeMode.None) { Radius = 0; } else { Radius = radius; } IsStuckableWithOhters = isStuckableWithOthers; IsStuckableSameCaster = isStuckableSameCaster; Auras = new List <AuraBase>(); Scripts = new List <BasicScript>(); SpellModifiers = new List <SpellInfoModifierFromBuff>(); SpellTriggers = new List <SpellTrigger>(); }
public BuffRemovalEffect(RemovalCondition newRemovalCondition) { removalCondition = newRemovalCondition; AoeMode = AoeMode.None; }
public ApplyBuffEffect(Buff buff) { Buff = buff; AoeMode = AoeMode.None; }
public AoeEffect(IEffect baseEffect, AoeMode newAoeMode, float newRadius) { Effect = baseEffect; Radius = newRadius; AoeMode = newAoeMode; }
public BaseEffect(AoeMode aoeMode) { AoeMode = aoeMode; }
public KnockBackEffect(int horizontalValue, int verticalValue) { this.horizontalValue = horizontalValue; this.verticalValue = verticalValue; AoeMode = AoeMode.None; }
public AoeEffect(BaseEffect baseEffect, int radius, AoeMode aoeMode) : base(aoeMode) { Effect = (BaseEffect)baseEffect.Clone(); this.Radius = radius; }
public ModelChangeEffect(AnimatedSprite model, string modelName, AoeMode aoeMode) : base(aoeMode) { newModel = model; newModelName = modelName; }