This commit is contained in:
@@ -34,7 +34,7 @@ func (e *Effect131) DamageLockEx(t *info.DamageZone) bool {
|
||||
|
||||
// 4. 对比对手性别与目标性别,匹配则免疫伤害
|
||||
// 注:需确保BattlePetEntity的Gender字段类型为int/int8,与xGender类型匹配
|
||||
if int(e.Ctx().Opp.CurrentPet.Gender) == int(xGender) {
|
||||
if int(e.Ctx().Opp.CurrentPet.Info.Gender) == int(xGender) {
|
||||
// 将伤害置为0,实现当前回合伤害免疫
|
||||
t.Damage = alpacadecimal.Zero
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user