本文整理汇总了C#中HRSim.Playfield.getMinionHeal方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.getMinionHeal方法的具体用法?C# Playfield.getMinionHeal怎么用?C# Playfield.getMinionHeal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.getMinionHeal方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getBattlecryEffect
// Battlecry: Restore 8 Health to your hero.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (own.own)
{
int heal = p.getMinionHeal(8, own.own);
p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal, true);
}
else
{
int heal = p.getMinionHeal(8, own.own);
p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal, true);
}
}
示例2: onTurnStartTrigger
// <deDE>Stellt zu Beginn Eures Zuges bei einem verletzten befreundeten Charakter 3 Leben wieder her.</deDE>
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if (turnStartOfOwner == triggerEffectMinion.own)
{
int heal = p.getMinionHeal(3, turnStartOfOwner);
List<Minion> temp = (turnStartOfOwner) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
if (temp.Count >= 1)
{
bool healed = false;
foreach (Minion mins in temp)
{
if (mins.wounded)
{
p.minionGetDamageOrHeal(mins, -heal);
healed = true;
break;
}
}
if (!healed)
{
p.minionGetDamageOrHeal(turnStartOfOwner ? p.playerFirst.ownHero : p.playerSecond.ownHero, -heal);
}
}
else
{
p.minionGetDamageOrHeal(turnStartOfOwner ? p.playerFirst.ownHero : p.playerSecond.ownHero, -heal);
}
}
}
示例3: onTurnEndsTrigger
// stellt am ende eures zuges bei einem verletzten charakter 6 leben wieder her.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (turnEndOfOwner == triggerEffectMinion.own)
{
Minion tm = null;
int hl = p.getMinionHeal(6, triggerEffectMinion.own);
int heal = 0;
foreach (Minion m in p.playerFirst.ownMinions)
{
if (m.maxHp - m.Hp > heal)
{
tm = m;
heal = m.maxHp - m.Hp;
}
}
foreach (Minion m in p.playerSecond.ownMinions)
{
if (m.maxHp - m.Hp > heal)
{
tm = m;
heal = m.maxHp - m.Hp;
}
}
if (heal >= 1)
{
p.minionGetDamageOrHeal(tm, -hl);
}
else
{
p.minionGetDamageOrHeal(p.playerFirst.ownHero.Hp < 30 ? p.playerFirst.ownHero : p.playerSecond.ownHero, -hl);
}
}
}
示例4: onTurnEndsTrigger
// stellt am ende eures zuges bei allen befreundeten dienern 1 leben wieder her.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (triggerEffectMinion.own == turnEndOfOwner)
{
int heal = p.getMinionHeal(1, triggerEffectMinion.own);
p.allMinionOfASideGetDamage(turnEndOfOwner, -heal);
}
}
示例5: onTurnStartTrigger
// stellt zu beginn eures zuges das volle leben dieses dieners wieder her.
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if (triggerEffectMinion.own == turnStartOfOwner)
{
int heal = p.getMinionHeal(triggerEffectMinion.maxHp - triggerEffectMinion.Hp, triggerEffectMinion.own);
p.minionGetDamageOrHeal(triggerEffectMinion, -heal);
}
}
示例6: onTurnEndsTrigger
// if you control a Secret at the end of your turn, restore 4 health to your hero.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (turnEndOfOwner == triggerEffectMinion.own)
{
if (((turnEndOfOwner) ? p.playerFirst.ownSecretsIDList.Count : p.playerSecond.ownSecretsIDList.Count) >= 1)
{
int heal = p.getMinionHeal(4, turnEndOfOwner);
p.minionGetDamageOrHeal(((turnEndOfOwner) ? p.playerFirst.ownHero : p.playerSecond.ownHero), -heal, true);
}
}
}
示例7: getBattlecryEffect
//Zieht 2 Karten; oder stellt 5 Leben wieder her
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (choice == 2)
{
int heal = p.getMinionHeal(5, own.own);
p.minionGetDamageOrHeal(target, -heal);
}
else
{
p.drawACard(p.getArandomCardFromDeck(own.own), own.own);
p.drawACard(p.getArandomCardFromDeck(own.own), own.own);
}
}
示例8: onDeathrattle
// todesröcheln:/ stellt beim feindlichen helden 5 leben wieder her.
public override void onDeathrattle(Playfield p, Minion m)
{
int heal = p.getMinionHeal(5, m.own);
p.minionGetDamageOrHeal(m.own ? p.playerSecond.ownHero : p.playerFirst.ownHero, -heal);
}
示例9: getBattlecryEffect
// kampfschrei:/ stellt 3 leben wieder her.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
int heal =p.getMinionHeal(3, own.own);
p.minionGetDamageOrHeal(target, -heal);
}
示例10: getBattlecryEffect
// kampfschrei:/ stellt bei allen befreundeten charakteren 2 leben wieder her.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
int heal = p.getMinionHeal(2, own.own);
p.allCharsOfASideGetDamage(own.own, -heal);
}