I have set it so he does his ability he will not poison his owner, but he WILL poison any other good people around him not just combatants.
Help on this would be appreciated, this is the area causing the issue:
I know there is a better way to take care of the owner, the mare itself and others to NOT get hit with the poison...but getting stuck on a new call. I think there has to be a
if(BLAH BLAH is BLah)
return;
or something like that.
I attached the script also, thanks for any assistance!
Shazzy
Help on this would be appreciated, this is the area causing the issue:
Code:
public override void OnActionCombat()
{
Mobile combatant = Combatant;
if ( DateTime.UtcNow < m_NextAbilityTime || combatant == null || combatant.Deleted || combatant.Map != Map || !InRange( combatant, 3 ) || !CanBeHarmful( combatant ) || !InLOS( combatant ) )
return;
m_NextAbilityTime = DateTime.UtcNow + TimeSpan.FromSeconds( Utility.RandomMinMax( 5, 30 ) );
if ( Utility.RandomBool() )
{
this.FixedParticles( 0x376A, 9, 32, 0x2539, EffectLayer.LeftHand );
this.PlaySound( 0x1DE );
foreach ( Mobile m in this.GetMobilesInRange( 2 ) )
{
if ( m != this.ControlMaster && m != this && IsEnemy( m ) )
{
m.ApplyPoison( this, Poison.Deadly );
}
}
}
}
if(BLAH BLAH is BLah)
return;
or something like that.
I attached the script also, thanks for any assistance!
Shazzy