Example #1
0
 private static void AttemptFireBreath(BaseCreature creature, Mobile target)
 {
     if (!creature.InLOS(target))
     {
         creature.SendMessage("Target cannot be seen.");
         return;
     }
     if (!target.InRange(creature, creature.BreathRange))
     {
         creature.SendMessage("That is too far away.");
         return;
     }
     if (target != null && target.Alive && !target.IsDeadBondedPet && creature.CanBeHarmful(target) &&
         target.Map == creature.Map && !creature.IsDeadBondedPet &&
         !creature.BardPacified)
     {
         creature.BreathStart(target);
         creature.SetNextBreathTime();
     }
     else
     {
         creature.SendMessage("You can't breathe fire on that!");
     }
 }