public bool CompareAffliction(Spell spell) { Affliction curAffliction = afflictions.Peek(); if (curAffliction.GetAfflicitonElement() == spell.GetElement()) { if (curAffliction.GetAfflictionDamage() == spell.GetDamage()) { //This is the correct spell. afflictions.Dequeue(); return(true); } else { return(false); } } else { return(false); } }