public HealEffect(int MinValue, int MaxValue, int Modifier)
 {
     modifier = Modifier;
     minValue = MinValue;
     maxValue = MaxValue;
     AoeMode  = AoeMode.None;
 }
Example #2
0
        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;
 }
Example #5
0
 public AoeEffect(IEffect baseEffect, AoeMode newAoeMode, float newRadius)
 {
     Effect  = baseEffect;
     Radius  = newRadius;
     AoeMode = newAoeMode;
 }
Example #6
0
 public BaseEffect(AoeMode aoeMode)
 {
     AoeMode = aoeMode;
 }
Example #7
0
 public KnockBackEffect(int horizontalValue, int verticalValue)
 {
     this.horizontalValue = horizontalValue;
     this.verticalValue   = verticalValue;
     AoeMode = AoeMode.None;
 }
Example #8
0
 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;
 }