AdamD
Member
I really should learn the proper terms for coding lol
But I have the old special AI package from runuo, which gives mobiles extra abilities, like area lighting, earthquake, multi fireball attack etc.
The problem is, I want a specific monster to have multi fireball and area gas attack, which works, but I don't want it targetting monsters of the same type, but I don't know what to change, or add, to the targetting section of code, which is:
I know it's that last part which deals with what NOT to target, but I can't work out what to put in there.
Any suggestions?
But I have the old special AI package from runuo, which gives mobiles extra abilities, like area lighting, earthquake, multi fireball attack etc.
The problem is, I want a specific monster to have multi fireball and area gas attack, which works, but I don't want it targetting monsters of the same type, but I don't know what to change, or add, to the targetting section of code, which is:
public override void BreathStart( Mobile target )
{
base.BreathStart( target ); //tiramos un firebreath al objetivo original.
if( !DoesMultiFirebreathing || Utility.RandomDouble() > MultiFirebreathingChance )
return;
List<Mobile> posibleTgts = new List<Mobile>();
foreach( Mobile m in target.Map.GetMobilesInRange( target.Location, BreathMaxRange ) )
if (m != null && !m.Deleted && m != target && m.Alive && !m.IsDeadBondedPet &&
( m.AccessLevel < AccessLevel.Counselor || CanSee( m ) ) && CanBeHarmful( m ))
posibleTgts.Add( m );
I know it's that last part which deals with what NOT to target, but I can't work out what to put in there.
Any suggestions?
Last edited: