示例#1
0
文件: Unit.cs 项目: scerdam/Maze
        public void CastEffect(ushort effectID, Unit target)
        {
            EffectEntry effectEntry = DBStores.EffectStore[effectID];

            Effect effect = new Effect(effectEntry, target, this);
            effect.Cast();
        }
示例#2
0
文件: Slug.cs 项目: scerdam/Maze
 /// <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();
     }
 }