本文整理汇总了C#中WCell.RealmServer.Misc.DamageAction.ModDamagePercent方法的典型用法代码示例。如果您正苦于以下问题:C# DamageAction.ModDamagePercent方法的具体用法?C# DamageAction.ModDamagePercent怎么用?C# DamageAction.ModDamagePercent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WCell.RealmServer.Misc.DamageAction
的用法示例。
在下文中一共展示了DamageAction.ModDamagePercent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnDefend
public override void OnDefend(DamageAction action)
{
if (m_spellEffect.Spell.SchoolMask.HasAnyFlag(action.UsedSchool))
{
action.ModDamagePercent(EffectValue);
}
}
示例2: OnAttack
public override void OnAttack(DamageAction action)
{
// "Your spells and abilities deal 4% more damage to targets infected with Blood Plague."
if (action.SpellEffect != null && action.Victim.Auras.Contains(SpellId.EffectBloodPlague))
{
action.ModDamagePercent(EffectValue);
}
}
示例3: OnHit
public override void OnHit(DamageAction action)
{
// "Effects which increase Bleed damage also increase Maul damage."
var bleedBonusPct = action.Attacker.Auras.GetBleedBonusPercent();
action.ModDamagePercent(bleedBonusPct);
}
示例4: OnAttack
public override void OnAttack(DamageAction action)
{
// "spells and abilities deal $s1% more damage to targets infected with Frost Fever"
if (action.SpellEffect != null && action.Victim.Auras.Contains(SpellId.EffectFrostFever))
{
action.ModDamagePercent(EffectValue);
}
}
示例5: OnDefend
public override void OnDefend(DamageAction action)
{
var spell = action.Spell;
if (spell != null && spell.DispelType == DispelType.Disease)
{
action.ModDamagePercent(EffectValue);
}
}