public virtual bool CheckFizzle()
{
if (m_Scroll is BaseWand)
{
return true;
}
if (m_Scroll is SpellScroll)
{
return true;
}
double minSkill, maxSkill;
GetCastSkills(out minSkill, out maxSkill);
if (DamageSkill != CastSkill)
{
Caster.CheckSkill(DamageSkill, 0.0, Caster.Skills[DamageSkill].Cap);
}
return Caster.CheckSkill(CastSkill, minSkill, maxSkill);
}
public override void GetCastSkills(out double min, out double max)
{
if( this.Scroll is SpellScroll)
{
min = 0;
max = 0;
}
int circle = (int)this.Circle;
if (this.Scroll != null)
circle -= 2;
double avg = ChanceLength * circle;
min = avg - ChanceOffset;
max = avg + ChanceOffset;
}
public override int GetMana()
{
if (this.Scroll is BaseWand)
return 0;
if( this.Scroll is SpellScroll)
return 0;
return m_ManaTable[(int)this.Circle];
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.