@@ -31,28 +31,28 @@ public static string SpellTargetMultiplePositions()
3131 if ( ! Settings . SQLOutputFlag . HasAnyFlagBit ( SQLOutput . spell_target_position ) )
3232 return string . Empty ;
3333
34- var rows = new RowList < SpellTargetPosition > ( ) ;
34+ var rows = new RowList < SpellTargetPositionMulti > ( ) ;
3535 Dictionary < uint , uint > idCount = new Dictionary < uint , uint > ( ) ;
3636
3737 foreach ( var spellTargetPosition in Storage . SpellTargetMultiplePositions . OrderBy ( t => t . Key ) )
3838 {
3939 foreach ( var spellTargetPositionValue in spellTargetPosition . Value )
4040 {
4141 idCount . TryGetValue ( spellTargetPosition . Key , out uint count ) ;
42- var duplicatedRow = rows . Where ( spellTargetPosition2 =>
42+ var duplicatedRow = rows . Any ( spellTargetPosition2 =>
4343 spellTargetPosition2 . Data . ID == spellTargetPosition . Key &&
4444 spellTargetPosition2 . Data . PositionX == spellTargetPositionValue . Item1 . PositionX &&
4545 spellTargetPosition2 . Data . PositionY == spellTargetPositionValue . Item1 . PositionY &&
4646 spellTargetPosition2 . Data . PositionZ == spellTargetPositionValue . Item1 . PositionZ &&
4747 spellTargetPosition2 . Data . MapID == spellTargetPositionValue . Item1 . MapID
48- ) . Any ( ) ;
48+ ) ;
4949
5050 if ( duplicatedRow )
5151 continue ;
5252
53- var row = new Row < SpellTargetPosition >
53+ var row = new Row < SpellTargetPositionMulti >
5454 {
55- Data = new SpellTargetPosition
55+ Data = new SpellTargetPositionMulti
5656 {
5757 ID = spellTargetPosition . Key ,
5858 EffectIndex = spellTargetPositionValue . Item1 . EffectIndex ,
@@ -70,7 +70,7 @@ public static string SpellTargetMultiplePositions()
7070 rows . Add ( row ) ;
7171 }
7272 }
73- return new SQLInsert < SpellTargetPosition > ( rows , false ) . Build ( ) ;
73+ return new SQLInsert < SpellTargetPositionMulti > ( rows , false ) . Build ( ) ;
7474 }
7575 }
7676}
0 commit comments