View difference between Paste ID: nFeih4XG and HPzygjL9
SHOW: | | - or go back to the newest paste.
1
AddCreature ( 76, "nemodatok_title", health : 3, damage : 2, armor : 0, cost : 2, line : TableLineFlags.Second, heroClass : HeroClassFlags.Mage )
2
				.AddSpreadAuraOverCardsAbility (
3
                    "nemodatok_magiccostreduction_title", "MagicCostReduction",
4
					DevCardFactory.CreateAuraCasterFilter (),
5
					new CardTargetFilter () {
6
						AllianceRelationMask = AllianceRelationFlags.Friend | AllianceRelationFlags.Own,
7
						CanTargetSelf = false,
8
						DispositionMask = CardDisposition.Hand,
9
						CardType = CardType.Spell,
10
                        Predicate = (targetingCard, targetedCard) => targetedCard is UnitCard && (targetedCard as UnitCard).ManaCost.Value <= 1
11
                    },
12
					( ability ) => new EntityAttributeBuff (
13
						ability, "Удешевление магии",
14
						new [] {
15
							new AttributeModifierPair (
16
								EntityAttributeKind.ManaCost,
17
								new IntAttributeModifier ( ability, -1, IntAttributeModifierOperation.Add, EntityAttributeModifierPriority.Tail )
18
							)
19
						}
20
					),
21
					description : "Ваши заклинания стоят на 1 каплю маны меньше."
22
                )
23
				.SetImagePrefab("card-nemodatok")
24
				.SetDescription ( "nemodatok_descr" );