示例#1
0
 /// <summary>
 /// Creates a new AreaAura which applies its effects to everyone in its radius of influence
 /// </summary>
 protected void Init(WorldObject holder, Spell spell)
 {
     this.m_holder          = holder;
     this.m_CasterReference =
         !(holder is DynamicObject) ? holder.SharedReference : holder.Master.SharedReference;
     this.m_spell = spell;
     if (spell.IsAreaAura)
     {
         this.m_targets = new Dictionary <Unit, Aura>();
     }
     holder.AddAreaAura(this);
 }