public void ApplyBuffOnTarget_5ResiPierceOnAnotherPlayer_Has5ResiPierceBaseBuffBonus()
        {
            var caster         = new FakePlayer();
            var target         = new FakePlayer();
            var spell          = NewSpellWithValue(5);
            var spellLine      = NewBasecSpellLine();
            var resiPierceBuff = new ResiPierceBuff(caster, spell, spellLine);

            resiPierceBuff.ApplyEffectOnTarget(target, 1);

            var actual = target.BaseBuffBonusCategory[eProperty.ResistPierce];

            Assert.AreEqual(5, actual);
        }
Beispiel #2
0
        public void ApplyBuffOnTarget_5ResiPierceOnAnotherPlayer_Has5ResiPierceBaseBuffBonus()
        {
            var caster  = new FakePlayer();
            var target  = new FakePlayer();
            var dbSpell = new DBSpell();

            dbSpell.Value    = 5;
            dbSpell.Target   = "Realm";
            dbSpell.Duration = 10;
            var spell          = new Spell(dbSpell, 0);
            var spellLine      = new SpellLine("", "", "", true);
            var resiPierceBuff = new ResiPierceBuff(caster, spell, spellLine);

            FakeServer.LoadAndReturn().FakeServerRules.fakeIsAllowedToAttack = false;

            resiPierceBuff.ApplyEffectOnTarget(target, 1);

            var actualResiPiercing = target.BaseBuffBonusCategory[eProperty.ResistPierce];

            Assert.AreEqual(5, actualResiPiercing);
        }