Formats UO Content (#201)
This commit is contained in:
parent
86b7b3aed1
commit
ad3775c4d7
3249 changed files with 431083 additions and 440981 deletions
|
|
@ -4,41 +4,43 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Spells.Spellweaving
|
||||
{
|
||||
public class SummonFiendSpell : ArcaneSummon<ArcaneFiend>
|
||||
{
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Summon Fiend", "Nylisstra",
|
||||
-1);
|
||||
|
||||
public SummonFiendSpell(Mobile caster, Item scroll = null)
|
||||
: base(caster, scroll, m_Info)
|
||||
public class SummonFiendSpell : ArcaneSummon<ArcaneFiend>
|
||||
{
|
||||
}
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Summon Fiend",
|
||||
"Nylisstra",
|
||||
-1
|
||||
);
|
||||
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(2.0);
|
||||
|
||||
public override double RequiredSkill => 38.0;
|
||||
public override int RequiredMana => 10;
|
||||
|
||||
public override int Sound => 0x216;
|
||||
|
||||
public override bool CheckSequence()
|
||||
{
|
||||
Mobile caster = Caster;
|
||||
|
||||
// This is done after casting completes
|
||||
if (caster is PlayerMobile mobile)
|
||||
{
|
||||
MLQuestContext context = MLQuestSystem.GetContext(mobile);
|
||||
|
||||
if (context?.SummonFiend != true)
|
||||
public SummonFiendSpell(Mobile caster, Item scroll = null)
|
||||
: base(caster, scroll, m_Info)
|
||||
{
|
||||
mobile.SendLocalizedMessage(1074564); // You haven't demonstrated mastery to summon a fiend.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return base.CheckSequence();
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(2.0);
|
||||
|
||||
public override double RequiredSkill => 38.0;
|
||||
public override int RequiredMana => 10;
|
||||
|
||||
public override int Sound => 0x216;
|
||||
|
||||
public override bool CheckSequence()
|
||||
{
|
||||
var caster = Caster;
|
||||
|
||||
// This is done after casting completes
|
||||
if (caster is PlayerMobile mobile)
|
||||
{
|
||||
var context = MLQuestSystem.GetContext(mobile);
|
||||
|
||||
if (context?.SummonFiend != true)
|
||||
{
|
||||
mobile.SendLocalizedMessage(1074564); // You haven't demonstrated mastery to summon a fiend.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return base.CheckSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue