コード例 #1
0
        public override void OnGotMeleeAttack(Mobile attacker)
        {
            if (attacker != this && 0.05 > Utility.RandomDouble())
            {
                BaseCreature wolf = new BaneHellHound();

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

                Say("*The bane chosen summons a beast!*");
            }

            base.OnGotMeleeAttack(attacker);
        }
コード例 #2
0
        public override void OnDamagedBySpell(Mobile caster)
        {
            if (caster != this && 0.05 > Utility.RandomDouble())
            {
                BaseCreature wolf = new BaneHellHound( );

                wolf.Team = this.Team;
                wolf.MoveToWorld(this.Location, this.Map);
                wolf.Combatant = caster;

                Say("*The bane chosen summons a beast!*");
            }

            base.OnDamagedBySpell(caster);
        }
コード例 #3
0
		public override void OnGotMeleeAttack( Mobile attacker )
		{
			if ( attacker != this && 0.05 > Utility.RandomDouble() )
			{
				BaseCreature wolf = new BaneHellHound();

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

				Say( "*The bane chosen summons a beast!*" ); 
			}

			base.OnGotMeleeAttack( attacker );
		}
コード例 #4
0
		public override void OnDamagedBySpell( Mobile caster )
		{
			if ( caster != this && 0.05 > Utility.RandomDouble() )
			{
				BaseCreature wolf = new BaneHellHound( );

				wolf.Team = this.Team;
				wolf.MoveToWorld( this.Location, this.Map );
				wolf.Combatant = caster;

				Say( "*The bane chosen summons a beast!*"  ); 
			}

			base.OnDamagedBySpell( caster );
		}