private void OnPermanentDestroyed(CreatureStats creature, Source killSource)
 {
     if (killSource.Creature == owner)
     {
         owner.Heal(3);
     }
 }
示例#2
0
        public void OnUseCard(Owner caster, MapPosition target)
        {
            CreatureStats creature = CombatManager.GetCreatureAt(target);

            if (creature != null)
            {
                creature.Heal(5);
            }
        }
示例#3
0
        public void OnUseCard(Owner caster, MapPosition target)
        {
            List <MapPosition> positions = new List <MapPosition>();

            positions.Add(target);
            foreach (MapPosition position in Utils.GetAdjacent(target))
            {
                positions.Add(position);
            }

            foreach (MapPosition pos in positions)
            {
                CreatureStats creatureAt = CombatManager.GetCreatureAt(pos);
                if (creatureAt && creatureAt.OwnedBy == caster)
                {
                    creatureAt.Heal(3);
                }
            }
        }