Example #1
0
        public override void OnGotMeleeAttack(Mobile attacker)
        {
            if (attacker != this && 0.15 > Utility.RandomDouble())
            {
                BaseCreature spawn = new Spartan(this);

                spawn.Team = this.Team;
                spawn.MoveToWorld(this.Location, this.Map);
                spawn.Combatant = attacker;
                DoCounter(attacker);

                this.Say(true, "You have wounded me! Guards!");
            }

            base.OnGotMeleeAttack(attacker);
        }
Example #2
0
        // TODO: Poison attack

        public override void OnDamagedBySpell(Mobile caster)
        {
            if (caster != this && 0.15 > Utility.RandomDouble())
            {
                BaseCreature spawn = new Spartan(this);

                spawn.Team = this.Team;
                spawn.MoveToWorld(this.Location, this.Map);
                spawn.Combatant = caster;
                this.Say(true, "Show them no mercy!!");

                DoCounter(caster);
            }

            base.OnDamagedBySpell(caster);
        }
Example #3
0
		public override void OnGotMeleeAttack( Mobile attacker )
		{
			if ( attacker != this && 0.15 > Utility.RandomDouble() )
			{
				BaseCreature spawn = new Spartan( this );

				spawn.Team = this.Team;
				spawn.MoveToWorld( this.Location, this.Map );
				spawn.Combatant = attacker;
				DoCounter( attacker );

				this.Say( true, "You have wounded me! Guards!" );
			}

			base.OnGotMeleeAttack( attacker );
		}
Example #4
0
		// TODO: Poison attack

		public override void OnDamagedBySpell( Mobile caster )
		{
			if ( caster != this && 0.15 > Utility.RandomDouble() )
			{
				BaseCreature spawn = new Spartan( this );

				spawn.Team = this.Team;
				spawn.MoveToWorld( this.Location, this.Map );
				spawn.Combatant = caster;
				this.Say( true, "Show them no mercy!!" );

				DoCounter( caster );
			}

			base.OnDamagedBySpell( caster );
		}