File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
internal/artifacts/silkenmoonsserenade Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,22 @@ func (s *Set) Init() error {
6060 default :
6161 m2 [attributes .EM ] = 120
6262 }
63- lunarReactHook := func (args ... any ) bool {
63+ hook := func (args ... any ) bool {
6464 if _ , ok := args [0 ].(* enemy.Enemy ); ! ok {
6565 return false
6666 }
67+ atk := args [1 ].(* info.AttackEvent )
68+ switch atk .Info .Element {
69+ case attributes .Pyro :
70+ case attributes .Hydro :
71+ case attributes .Electro :
72+ case attributes .Cryo :
73+ case attributes .Anemo :
74+ case attributes .Geo :
75+ case attributes .Dendro :
76+ default :
77+ return false
78+ }
6779
6880 for _ , char := range s .core .Player .Chars () {
6981 char .AddStatMod (character.StatMod {
@@ -78,7 +90,7 @@ func (s *Set) Init() error {
7890
7991 return false
8092 }
81- s .core .Events .Subscribe (event .OnLunarCharged , lunarReactHook , setKey4 + "-lc -" + s .char .Base .Key .String ())
93+ s .core .Events .Subscribe (event .OnEnemyDamage , hook , setKey4 + "-dmg -" + s .char .Base .Key .String ())
8294
8395 for _ , char := range s .core .Player .Chars () {
8496 char .AddReactBonusMod (character.ReactBonusMod {
You can’t perform that action at this time.
0 commit comments