Revert "Updates Packets & Randomizer (#43)" (#61)

This reverts commit 179cb50557.
This commit is contained in:
Kamron Batman 2019-11-11 08:46:11 -08:00 • committed by GitHub
parent 179cb50557
commit c2ecc76457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
588 changed files with 16260 additions and 10926 deletions

View file

@ -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();