public double hasteToGCD(Spell spell) { return (32.79 * 100) * ((spell.baseCasttime / 1) - 1); }
public void AddSpell(Spell ch) { spells.Add(ch); }
public double getEffectiveHastePercentageForSpell(List<HasteBuff> hasteBuffList, HasteBuff current, Spell spell) { double maxPercentage = hasteToGCD(spell); double totalPercentage = 0; foreach (HasteBuff hastebuff in hasteBuffList) { totalPercentage += hastebuff.percentage; } if (maxPercentage > totalPercentage) return current.percentage; else return (maxPercentage / totalPercentage) * current.percentage; }