So I have the Crystal Hydra as tamable and when it uses its breath attack it will hit friendlies as well. Can someone help me with which part of the script I need to change/remove to keep it from attacking friendly players and its control master? Thank you in advance for your help <3
Code:
#region Breath
public override double BreathDamageScalar
{
get
{
return 0.13;
}
}
public override int BreathRange
{
get
{
return 5;
}
}
public override int BreathFireDamage
{
get
{
return 0;
}
}
public override int BreathColdDamage
{
get
{
return 100;
}
}
public override int BreathEffectHue
{
get
{
return 0x47E;
}
}
public override int BreathEffectSound
{
get
{
return 0x56D;
}
}
public override double BreathMinDelay
{
get
{
return 5.0;
}
}
public override double BreathMaxDelay
{
get
{
return 7.0;
}
}
public override bool HasBreath
{
get
{
return true;
}
}
public override void BreathStart(Mobile target)
{
this.BreathStallMovement();
this.BreathPlayAngerSound();
this.BreathPlayAngerAnimation();
this.Direction = this.GetDirectionTo(target);
int count = 0;
foreach (Mobile m in this.GetMobilesInRange(this.BreathRange))
{
if (count++ > 3)
break;
if (m != null && m != target && m.Alive && !m.IsDeadBondedPet && this.CanBeHarmful(m) && m.Map == this.Map && !this.IsDeadBondedPet && m.InRange(this, this.BreathRange) && this.InLOS(m) && !this.BardPacified)
Timer.DelayCall(TimeSpan.FromSeconds(this.BreathEffectDelay), new TimerStateCallback(BreathEffect_Callback), m);
}
Timer.DelayCall(TimeSpan.FromSeconds(this.BreathEffectDelay), new TimerStateCallback(BreathEffect_Callback), target);
}
#endregion