This reverts commit 179cb50557.
This commit is contained in:
parent
179cb50557
commit
c2ecc76457
588 changed files with 16260 additions and 10926 deletions
|
|
@ -339,17 +339,18 @@ namespace Server.Mobiles
|
|||
if (m_Mobile.Skills.Magery.Value >= 80.0 && Utility.RandomBool())
|
||||
return new ManaVampireSpell(m_Mobile);
|
||||
|
||||
public virtual Spell GetRandomManaDrainSpell() =>
|
||||
m_Mobile.Skills.Magery.Value >= 80.0 && Utility.RandomBool()
|
||||
? (Spell)new ManaVampireSpell(m_Mobile)
|
||||
: new ManaDrainSpell(m_Mobile);
|
||||
return new ManaDrainSpell(m_Mobile);
|
||||
}
|
||||
|
||||
public virtual Spell DoDispel(Mobile toDispel)
|
||||
{
|
||||
if (!SmartAI)
|
||||
return ScaleBySkill(DispelChance, SkillName.Magery) > Utility.RandomDouble()
|
||||
? new DispelSpell(m_Mobile)
|
||||
: ChooseSpell(toDispel);
|
||||
{
|
||||
if (ScaleBySkill(DispelChance, SkillName.Magery) > Utility.RandomDouble())
|
||||
return new DispelSpell(m_Mobile);
|
||||
|
||||
return ChooseSpell(toDispel);
|
||||
}
|
||||
|
||||
Spell spell = CheckCastHealingSpell();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue