コミットメタ情報

リビジョンafb992407b7542371b35b17fc766acbd348ff73c (tree)
日時2018-11-30 21:37:01
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

長門改二の一斉射に対応する

変更サマリ

差分

--- a/KancolleSniffer.Test/BattleTest.cs
+++ b/KancolleSniffer.Test/BattleTest.cs
@@ -266,5 +266,16 @@ namespace KancolleSniffer.Test
266266 SniffLogFile(night, "nelsontouch_003");
267267 PAssert.That(() => night.Battle.Result.Friend.Main[0].SpecialAttack == ShipStatus.Attack.Fire);
268268 }
269+
270+ [TestMethod]
271+ // ReSharper disable once IdentifierTypo
272+ public void NagatoSpecial()
273+ {
274+ var sniffer = new Sniffer();
275+ SniffLogFile(sniffer, "nagatospecial_001");
276+ PAssert.That(() => !sniffer.Battle.DisplayedResultRank.IsError);
277+ PAssert.That(() => sniffer.Battle.Result.Friend.Main[0].SpecialAttack == ShipStatus.Attack.Fire);
278+ PAssert.That(() => sniffer.Fleets[0].Ships[0].SpecialAttack == ShipStatus.Attack.Fired);
279+ }
269280 }
270281 }
\ No newline at end of file
--- a/KancolleSniffer.Test/logs
+++ b/KancolleSniffer.Test/logs
@@ -1 +1 @@
1-Subproject commit df2df6bd0b7a6234a1bd26c8132812e80182b6c3
1+Subproject commit 39721333f1a5918164598585b7e0c3bcb7e0ec17
--- a/KancolleSniffer/Model/BattleInfo.cs
+++ b/KancolleSniffer/Model/BattleInfo.cs
@@ -461,7 +461,7 @@ namespace KancolleSniffer.Model
461461 {
462462 if (ignoreFriendDamage && eFlags[turn] == 1)
463463 continue;
464- if (types[turn] == 100) // Nelson Touch
464+ if (types[turn] == 100 || types[turn] == 101) // Nelson Touchと長門一斉射
465465 records[eFlags[turn] ^ 1][sources[turn]].TriggerSpecialAttack();
466466 for (var shot = 0; shot < targets[turn].Length; shot++)
467467 {
旧リポジトリブラウザで表示