本文整理汇总了C#中HRSim.Playfield.getSpellHeal方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.getSpellHeal方法的具体用法?C# Playfield.getSpellHeal怎么用?C# Playfield.getSpellHeal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.getSpellHeal方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
// Restore #4 Health to your hero and gain +2 Attack this turn.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
int heal = p.getSpellHeal(4, ownplay);
p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal);
p.minionGetTempBuff(p.playerFirst.ownHero, 2, 0);
}
else
{
int heal = p.getSpellHeal(4, ownplay);
p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal);
p.minionGetTempBuff(p.playerSecond.ownHero, 2, 0);
}
}
示例2: onCardPlay
//Vernichtet einen Diener. Stellt bei Eurem Helden #3 Leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionGetDestroyed(target);
int heal = p.getSpellHeal(3, ownplay);
p.minionGetDamageOrHeal(ownplay ? p.playerFirst.ownHero : p.playerSecond.ownHero, -heal);
}
示例3: onCardPlay
//todo make it better :D
//Fügt allen Feinden $2 Schaden zu. Stellt bei allen befreundeten Charakteren #2 Leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(2, ownplay);
int heal = p.getSpellHeal(2, ownplay);
if (ownplay)
{
p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal);
p.minionGetDamageOrHeal(p.playerSecond.ownHero, dmg);
foreach (Minion m in p.playerFirst.ownMinions)
{
p.minionGetDamageOrHeal(m, -heal);
}
foreach (Minion m in p.playerSecond.ownMinions)
{
p.minionGetDamageOrHeal(m, dmg);
}
}
else
{
p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal);
p.minionGetDamageOrHeal(p.playerFirst.ownHero, dmg);
foreach (Minion m in p.playerSecond.ownMinions)
{
p.minionGetDamageOrHeal(m, -heal);
}
foreach (Minion m in p.playerFirst.ownMinions)
{
p.minionGetDamageOrHeal(m, dmg);
}
}
}
示例4: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = p.getSpellHeal(3, ownplay);
p.minionGetDamageOrHeal(target, -heal);
if (target.Hp < target.maxHp)
{
int posi = (ownplay) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(kid, posi, ownplay);
}
}
示例5: onCardPlay
// stellt #6 leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = p.getSpellHeal(6, ownplay);
p.minionGetDamageOrHeal(target, -heal);
}
示例6: onCardPlay
// stellt bei allen dienern #4 leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = p.getSpellHeal(4, ownplay);
p.allMinionsGetDamage(-heal);
}