除了充盈都做完了
This commit is contained in:
@@ -76,7 +76,7 @@ namespace Continentis.MainGame.Character
|
||||
/// <param name="ignoreBlock">是否无视格挡</param>
|
||||
/// <param name="ignoreShield">是否无视护盾</param>
|
||||
/// <returns>实际造成的伤害</returns>
|
||||
public int Attack(CharacterBase target, int startDamage, bool ignoreDodge = false, bool ignoreBlock = false, bool ignoreShield = false)
|
||||
public AttackResult Attack(CharacterBase target, int startDamage, bool triggerAttackEvent = true, bool ignoreDodge = false, bool ignoreBlock = false, bool ignoreShield = false)
|
||||
{
|
||||
eventSubmodule.onStartAttack.Invoke(new List<CharacterBase> { target });
|
||||
|
||||
@@ -106,9 +106,12 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
target.characterView.hudContainer.enablingHUDs["MainAttributesBar"].UpdateHud();
|
||||
AttackResult attackResult = new AttackResult(this, startDamage, dodged, blocked, shielded, hurt);
|
||||
eventSubmodule.onFinishAttack.Invoke(new List<CharacterBase> { target }, new List<AttackResult> { attackResult });
|
||||
|
||||
return hurt;
|
||||
if (triggerAttackEvent)
|
||||
{
|
||||
eventSubmodule.onFinishAttack.Invoke(new List<CharacterBase> { target }, new List<AttackResult> { attackResult });
|
||||
}
|
||||
|
||||
return attackResult;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user