fix: improve endgame clock and gameplay stability
This commit is contained in:
1 parent
ce6aabfc55
commit
658298ee86
46 files changed
+1915
-99
No files matched your search
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
// Inspect actual battle buffs, rather than ChallengeStageID or a reused stage ID.
|
||||
// This covers an imported custom battle that already includes Corruption.
|
||||
func (r *battleRules) applyAhaHelp(battle *pb.SceneBattleInfo, legacyEnabled bool, owner uint32) error {
|
||||
func (r *battleRules) applyAhaHelp(battle *pb.SceneBattleInfo, legacyEnabled bool, owner uint32, attackerSlot *uint32) error {
|
||||
var corruption uint32
|
||||
for _, buff := range battle.BuffList {
|
||||
for _, id := range r.InvasionBuffs {
|
||||
@@ -57,7 +57,11 @@ func (r *battleRules) applyAhaHelp(battle *pb.SceneBattleInfo, legacyEnabled boo
|
||||
}
|
||||
battle.BuffList = filtered
|
||||
if support != 0 {
|
||||
battle.BuffList = append(battle.BuffList, battleBuff(support, owner, map[string]float32{"SkillIndex": 1}))
|
||||
buff := battleBuff(support, owner, map[string]float32{"SkillIndex": 1})
|
||||
if attackerSlot != nil {
|
||||
buff.TargetIndexList = []uint32{*attackerSlot}
|
||||
}
|
||||
battle.BuffList = append(battle.BuffList, buff)
|
||||
}
|
||||
SceneDebugLog("AHA_HELP stage=%d corruption=%d selected=%v legacy=%t support=%d level=%d", battle.StageId, corruption, selectedValue(selected), legacyEnabled, support, level)
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user