fix: 确保普通攻击的伤害类型正确

This commit is contained in:
风吹落的叶子 2025-11-16 14:46:43 +08:00
parent 6ebeb53674
commit 774e26240b
Signed by: yeziuku
GPG Key ID: E4B3256511E76470
2 changed files with 2 additions and 2 deletions

View File

@ -1326,7 +1326,7 @@ namespace Milimoe.FunGame.Core.Entity
{
effect.OnAttributeChanged(this);
}
NormalAttack.ResolveMagicType();
NormalAttack.SetMagicType(null, null, null);
}
/// <summary>

View File

@ -257,7 +257,7 @@ namespace Milimoe.FunGame.Core.Entity
character.NormalAttack.ExDamage2 = reference.NormalAttack.ExDamage2;
character.NormalAttack.ExHardnessTime = reference.NormalAttack.ExHardnessTime;
character.NormalAttack.ExHardnessTime2 = reference.NormalAttack.ExHardnessTime2;
character.NormalAttack.SetMagicType(reference.NormalAttack.IsMagic, reference.NormalAttack.MagicType);
character.NormalAttack.SetMagicType(null, null, null);
if (!recovery)
{
character.HP = reference.HP;