- extensive framework for dueling, tournaments, and events
- IP address command implementor - miscellaneous minor fixes
This commit is contained in:
parent
c52504151b
commit
599b2af6d5
82 changed files with 11920 additions and 63 deletions
|
|
@ -20,6 +20,17 @@ namespace Server.Spells.Third
|
|||
{
|
||||
}
|
||||
|
||||
public override bool CheckCast()
|
||||
{
|
||||
if ( Engines.ConPVP.DuelContext.CheckSuddenDeath( Caster ) )
|
||||
{
|
||||
Caster.SendMessage( 0x22, "You cannot cast this spell when in sudden death." );
|
||||
return false;
|
||||
}
|
||||
|
||||
return base.CheckCast();
|
||||
}
|
||||
|
||||
public override void OnCast()
|
||||
{
|
||||
Caster.Target = new InternalTarget( this );
|
||||
|
|
|
|||
|
|
@ -71,7 +71,28 @@ namespace Server.Spells.Third
|
|||
}
|
||||
else
|
||||
{
|
||||
double total = Caster.Skills[SkillName.Magery].Value + Caster.Skills[SkillName.Poisoning].Value;
|
||||
//double total = Caster.Skills[SkillName.Magery].Value + Caster.Skills[SkillName.Poisoning].Value;
|
||||
|
||||
#region Dueling
|
||||
double total = Caster.Skills[SkillName.Magery].Value;
|
||||
|
||||
if ( Caster is Mobiles.PlayerMobile )
|
||||
{
|
||||
Mobiles.PlayerMobile pm = (Mobiles.PlayerMobile)Caster;
|
||||
|
||||
if ( pm.DuelContext != null && pm.DuelContext.Started && !pm.DuelContext.Finished && !pm.DuelContext.Ruleset.GetOption( "Skills", "Poisoning" ) )
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
total += Caster.Skills[SkillName.Poisoning].Value;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
total += Caster.Skills[SkillName.Poisoning].Value;
|
||||
}
|
||||
#endregion
|
||||
|
||||
double dist = Caster.GetDistanceToSqrt( m );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue