很多更新,服务端连接,新UI和系统
This commit is contained in:
@@ -1676,6 +1676,10 @@ public class AllyCombatant : MonoBehaviour, ICombatant
|
||||
int oldHP = currentHP;
|
||||
float effective = amount * (1f - damageResistance);
|
||||
int delta = Mathf.CeilToInt(effective);
|
||||
if (SkillBuilder.Instance != null && SkillBuilder.Instance.TryPreventLethalDamage(this, delta))
|
||||
{
|
||||
return;
|
||||
}
|
||||
ModifyHP(-delta, true, true);
|
||||
|
||||
int actual = oldHP - currentHP;
|
||||
@@ -1793,6 +1797,7 @@ public class AllyCombatant : MonoBehaviour, ICombatant
|
||||
if (buff.scoreMultiplier != 1f) scoreEfficiency *= buff.scoreMultiplier;
|
||||
if (buff.attackMultiplier != 1f) RecalculateAttackFromBuffs();
|
||||
iBudeffPrefabController.Instance?.NotifyBuffApplied(this, buff);
|
||||
SkillBuilder.Instance?.NotifyBuffApplied(slotIndex);
|
||||
}
|
||||
|
||||
public void RemoveBuff(string buffId)
|
||||
|
||||
Reference in New Issue
Block a user