public bool Fill(ControlledProjectile projectile, Spell origin_spell) { if (IsAvailable()) { this.projectile = projectile; this.origin_spell = origin_spell; projectile.SetManaSlot(this); return true; } return false; }
public bool FillManaSlot(ControlledProjectile p, Spell origin_spell) { for (int i = 0; i < mana_slots.Count; ++i) { if (mana_slots[i].IsAvailable()) { mana_slots[i].Fill(p, origin_spell); if (event_fill_slot != null) event_fill_slot(mana_slots[i]); return true; } } return false; }