![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Unit tests for extra attack chain-proc prevention. More...
Go to the source code of this file.
Classes | |
| class | ExtraAttackChainProcTest |
Functions | |
| TEST_F (ExtraAttackChainProcTest, NormalProc_AllowedWhenNoExtraAttackInProgress) | |
| TEST_F (ExtraAttackChainProcTest, SelfChain_BlockedWhenSameSpell) | |
| TEST_F (ExtraAttackChainProcTest, CrossChain_BlockedBySwordSpecialization) | |
| TEST_F (ExtraAttackChainProcTest, CrossChain_BlockedByHackAndSlash) | |
| TEST_F (ExtraAttackChainProcTest, DifferentExtraAttack_AllowedWhenNotBlacklisted) | |
| TEST_F (ExtraAttackChainProcTest, NonExtraAttackProc_UnaffectedByExtraAttackState) | |
| TEST_F (ExtraAttackChainProcTest, Reckoning_SelfChainBlocked) | |
| TEST_F (ExtraAttackChainProcTest, Reckoning_AllowedDuringHandOfJustice) | |
Variables | |
| constexpr uint32 | SPELL_RECKONING = 32746 |
| constexpr uint32 | SPELL_HAND_OF_JUSTICE = 15601 |
Unit tests for extra attack chain-proc prevention.
Tests the logic from SpellAuraEffects.cpp:1245-1261 (CheckEffectProc):
Definition in file ExtraAttackChainProcTest.cpp.
| TEST_F | ( | ExtraAttackChainProcTest | , |
| CrossChain_BlockedByHackAndSlash | |||
| ) |
References ProcChanceTestHelper::ShouldBlockExtraAttackChainProc(), SPELL_HACK_AND_SLASH, and SPELL_RECKONING.
| TEST_F | ( | ExtraAttackChainProcTest | , |
| CrossChain_BlockedBySwordSpecialization | |||
| ) |
References ProcChanceTestHelper::ShouldBlockExtraAttackChainProc(), SPELL_RECKONING, and SPELL_SWORD_SPECIALIZATION.
| TEST_F | ( | ExtraAttackChainProcTest | , |
| DifferentExtraAttack_AllowedWhenNotBlacklisted | |||
| ) |
References ProcChanceTestHelper::ShouldBlockExtraAttackChainProc(), SPELL_HAND_OF_JUSTICE, and SPELL_SWORD_SPECIALIZATION.
| TEST_F | ( | ExtraAttackChainProcTest | , |
| NonExtraAttackProc_UnaffectedByExtraAttackState | |||
| ) |
References ProcChanceTestHelper::ShouldBlockExtraAttackChainProc(), and SPELL_SWORD_SPECIALIZATION.
| TEST_F | ( | ExtraAttackChainProcTest | , |
| NormalProc_AllowedWhenNoExtraAttackInProgress | |||
| ) |
References ProcChanceTestHelper::ShouldBlockExtraAttackChainProc(), and SPELL_SWORD_SPECIALIZATION.
| TEST_F | ( | ExtraAttackChainProcTest | , |
| Reckoning_AllowedDuringHandOfJustice | |||
| ) |
References ProcChanceTestHelper::ShouldBlockExtraAttackChainProc(), SPELL_HAND_OF_JUSTICE, and SPELL_RECKONING.
| TEST_F | ( | ExtraAttackChainProcTest | , |
| Reckoning_SelfChainBlocked | |||
| ) |
References ProcChanceTestHelper::ShouldBlockExtraAttackChainProc(), and SPELL_RECKONING.
| TEST_F | ( | ExtraAttackChainProcTest | , |
| SelfChain_BlockedWhenSameSpell | |||
| ) |
References ProcChanceTestHelper::ShouldBlockExtraAttackChainProc(), and SPELL_SWORD_SPECIALIZATION.