refactor(fight): 优化状态效果获取逻辑,增加存活状态检查
This commit is contained in:
@@ -70,7 +70,7 @@ func (c *Input) GetProp(id int, istue bool) int {
|
||||
func (c *Input) GetEffect(etype EnumEffectType, id int) Effect {
|
||||
var ret []Effect
|
||||
for _, v := range c.Effects {
|
||||
if v.ID() == id {
|
||||
if v.ID() == id &&v.Alive(){
|
||||
ret = append(ret, v)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user