Exemplo n.º 1
0
 /// <summary>
 /// Determines whether the specified effect is afflicted.
 /// </summary>
 /// <param name="effect">The effect.</param>
 /// <returns><c>true</c> if the specified effect is afflicted; otherwise, <c>false</c>.</returns>
 public bool IsAfflicted(EliteMMO.API.StatusEffect effect)
 {
     foreach (var s in Api.Player.Buffs)
     {
         var status = (EliteMMO.API.StatusEffect)s;
         if (status == effect)
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 指定したBUFFがかかっているあ
 /// </summary>
 /// <param name="iStatusEffect">BUFF</param>
 /// <returns>指定したBUFFがかかっていたらTRUEを返す</returns>
 public bool IsBuff(EliteMMO.API.StatusEffect iStatusEffect)
 {
     return(api.Player.Buffs.Contains((short)iStatusEffect));
 }