public void CastEffect(ushort effectID, Unit target) { EffectEntry effectEntry = DBStores.EffectStore[effectID]; Effect effect = new Effect(effectEntry, target, this); effect.Cast(); }
/// <summary> /// Handles process of picking up a hidden bonus on map. /// </summary> /// <param name="effectID"><see cref="EffectEntry.ID"/> of the picking effect.</param> public void CollectHiddenBonus(ushort effectID) { EffectEntry effectEntry = DBStores.EffectStore[effectID]; if(effectEntry.HasAttribute(EffectAttributes.CanBeSpell)) { World.PlayForm.AddSpell(effectEntry); } else { Effect effect = new Effect(effectEntry, this, this); effect.Cast(); } }