This commit is contained in:
@@ -18,7 +18,7 @@ type Effect130 struct {
|
||||
func (e *Effect130) OnSkill() bool {
|
||||
// 1. 命中判定失败,不触发
|
||||
|
||||
if e.Ctx().Opp.CurrentPet.PetInfo.Gender != int(e.Args()[0].IntPart()) {
|
||||
if e.Ctx().Opp.CurrentPet.Info.Gender != int(e.Args()[0].IntPart()) {
|
||||
return true
|
||||
}
|
||||
// 4. 附加固定伤害(从SideEffectArgs[0]获取伤害值)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ func (e *Effect83) ComparePre(fattack *action.SelectSkillAction, sattack *action
|
||||
return true
|
||||
}
|
||||
|
||||
if e.Ctx().Our.CurrentPet.Gender != 1 {
|
||||
if e.Ctx().Our.CurrentPet.Info.Gender != 1 {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ func (e *Effect83) ActionStart(a, b *action.SelectSkillAction) bool {
|
||||
if e.Ctx().SkillEntity.Category() == info.Category.STATUS {
|
||||
return true
|
||||
}
|
||||
if e.Ctx().Our.CurrentPet.Gender != 2 {
|
||||
if e.Ctx().Our.CurrentPet.Info.Gender != 2 {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ type Effect98 struct {
|
||||
|
||||
func (e *Effect98) Damage_Mul(t *info.DamageZone) bool {
|
||||
|
||||
if e.Ctx().Opp.CurrentPet.Gender != 1 {
|
||||
if e.Ctx().Opp.CurrentPet.Info.Gender != 1 {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ func conditionIsFrozen(e *EffectConditionalAddDamage) bool {
|
||||
// conditionIsTypeX:判断对方是否为X属性对方为X性则附加n点伤害
|
||||
func conditionIsTypeX(e *EffectConditionalAddDamage) bool {
|
||||
// 示例:假设Args[0]为目标属性值,判断对方属性是否匹配
|
||||
return e.Ctx().Opp.CurrentPet.PetInfo.Gender == int(e.Args()[0].IntPart())
|
||||
return e.Ctx().Opp.CurrentPet.Info.Gender == int(e.Args()[0].IntPart())
|
||||
}
|
||||
|
||||
// conditionIsAbnormal:判断对方是否处于任意异常状态
|
||||
|
||||
@@ -89,7 +89,7 @@ type Effect129 struct {
|
||||
}
|
||||
|
||||
func (e *Effect129) SkillHit() bool {
|
||||
if e.Ctx().Opp.CurrentPet.Gender != e.SideEffectArgs[0] {
|
||||
if e.Ctx().Opp.CurrentPet.Info.Gender != e.SideEffectArgs[0] {
|
||||
return true
|
||||
}
|
||||
e.Ctx().SkillEntity.Power *= 2
|
||||
|
||||
Reference in New Issue
Block a user