Esempio n. 1
0
 // 设置无敌
 private void SetInvincible(ObjCharacter obj)
 {
     if (obj != null)
     {
         obj.AddBuff(1501, 1, obj);
     }
 }
Esempio n. 2
0
 //增加Buff
 public void AddBuff(ObjCharacter Character, int buffId, int buffLevel, ulong targetId = ulong.MaxValue)
 {
     if (targetId == ulong.MaxValue)
     {
         Character.AddBuff(buffId, buffLevel, Character);
     }
     else
     {
         var target = Character.Scene.FindCharacter(targetId);
         if (null != target)
         {
             target.AddBuff(buffId, buffLevel, Character);
         }
     }
 }