public virtual int ScaleMana(int mana) { double scalar = 1.0; if (ManaPhasingOrb.IsInManaPhase(Caster)) { ManaPhasingOrb.RemoveFromTable(Caster); return(0); } if (!MindRotSpell.GetMindRotScalar(Caster, ref scalar)) { scalar = 1.0; } if (Mysticism.PurgeMagicSpell.IsUnderCurseEffects(Caster)) { scalar += .5; } // Lower Mana Cost = 40% int lmc = AosAttributes.GetValue(m_Caster, AosAttribute.LowerManaCost); if (lmc > 40) { lmc = 40; } lmc += BaseArmor.GetInherentLowerManaCost(m_Caster); scalar -= (double)lmc / 100; return((int)(mana * scalar)); }
public virtual int ScaleMana(int mana) { double scalar = 1.0; if (ManaPhasingOrb.IsInManaPhase(Caster)) { ManaPhasingOrb.RemoveFromTable(Caster); return(0); } if (!MindRotSpell.GetMindRotScalar(Caster, ref scalar)) { scalar = 1.0; } // Lower Mana Cost = 40% int lmc = AosAttributes.GetValue(m_Caster, AosAttribute.LowerManaCost); if (lmc > 40) { lmc = 40; } scalar -= (double)lmc / 100; return((int)(mana * scalar)); }
public virtual void SpellManaCost(int mana) { double scalar = 1.0; MindRotSpell.GetMindRotScalar(Caster, ref scalar); if (scalar < 1.0) { scalar = 1.0; } Caster.Mana -= (int)(mana * scalar); }
public virtual int ScaleMana(int mana) { double scalar = 1.0; if (!MindRotSpell.GetMindRotScalar(Caster, ref scalar)) { scalar = 1.0; } // Lower Mana Cost = 40% int lmc = AosAttributes.GetValue(m_Caster, AosAttribute.LowerManaCost); if (lmc > 40) { lmc = 40; } scalar -= (double)lmc / 100; return((int)(mana * scalar)); }
public virtual int ScaleMana(Mobile m, int mana) { var scalar = 1.0; if (!MindRotSpell.GetMindRotScalar(m, ref scalar)) { scalar = 1.0; } // Lower Mana Cost = 40% var lmc = Math.Min(AosAttributes.GetValue(m, AosAttribute.LowerManaCost), 40); scalar -= (double)lmc / 100; var total = (int)(mana * scalar); if (m.Skills[MoveSkill].Value < 50.0 && GetContext(m) != null) { total *= 2; } return(total); }
public InternalTarget(MindRotSpell owner) : base(12, false, TargetFlags.Harmful) { m_Owner = owner; }