Files
ForeverCore/tests/game/ClassicWeaponImbue.cpp
T
Karrz1 ff699fb5cf Sync with WoW Forever 0.1.34: Blizzlike core
Brings forever up to date with our 0.1.34 code for the WoW Forever client 1.60.1.70862.
Blizzlike only: fixes from real game data (packet captures, live hotfixes, player caches, Wowhead and Questie data,
VMaNGOS for the vanilla world) and server fixes. No custom items or custom content; every rate and option defaults
to Blizzard's behaviour.

What is new since 2ae1313e, in short:
- Clients 70790, 70840 and 70862: message numbers, mail, guild window, charters, contact list, add-on whispers.
- Crash and exploit fixes: guild ranks, loot of emptied veins, quest lookups, taxi mask, battleground templates,
  vendor free buys, item sell price, auction house, falling out of the world, bnetserver request limit.
- Classes, talents, pets and buffs from the live game data and Blizzard's hotfixes of November.
- Quests, NPCs, spawns, trainers, loot, fishing, events, Merchant's Favor crates and writs, sealed crate turn-ins.
- Dungeon and raid scripts (Molten Core, Blackwing Lair, Zul'Gurub, Ahn'Qiraj, Shadowfang Keep, Deadmines ...).
- Pathing fixes that help pets and NPCs.
- Russian creature names, quest titles and quest texts.
- README: Blizzlike stance, branches, repack.
2026-11-09 17:27:57 +00:00

31 lines
1.5 KiB
C++

#include "tc_catch2.h"
#include "ClassicWeaponImbue.h"
TEST_CASE("Every Flametongue Weapon enchantment casts its own rank's proc", "[ClassicWeaponImbue]")
{
// enchantment ids from the imbue spells' enchant effects (8024, 8027, 8030, 16339, 16341, 16342, 461634) in 70532
CHECK(ClassicWeaponImbue::FlametongueProcForEnchant(5) == 8026);
CHECK(ClassicWeaponImbue::FlametongueProcForEnchant(4) == 8028);
CHECK(ClassicWeaponImbue::FlametongueProcForEnchant(3) == 8029);
CHECK(ClassicWeaponImbue::FlametongueProcForEnchant(523) == 10445);
CHECK(ClassicWeaponImbue::FlametongueProcForEnchant(1665) == 16343);
CHECK(ClassicWeaponImbue::FlametongueProcForEnchant(1666) == 16344);
CHECK(ClassicWeaponImbue::FlametongueProcForEnchant(7567) == 16344);
}
TEST_CASE("Windfury and other enchantments are not Flametongue", "[ClassicWeaponImbue]")
{
for (uint32 enchantId : { 0u, 283u, 284u, 525u, 1669u, 7569u, 8293u, 2506u })
CHECK(ClassicWeaponImbue::FlametongueProcForEnchant(enchantId) == 0);
}
TEST_CASE("Every Windfury Weapon enchantment grants its own rank's attack", "[ClassicWeaponImbue]")
{
CHECK(ClassicWeaponImbue::WindfuryAttackForEnchant(283) == 8233);
CHECK(ClassicWeaponImbue::WindfuryAttackForEnchant(284) == 8236);
CHECK(ClassicWeaponImbue::WindfuryAttackForEnchant(525) == 10484);
CHECK(ClassicWeaponImbue::WindfuryAttackForEnchant(1669) == 16361);
for (uint32 enchantId : { 0u, 5u, 4u, 3u, 523u, 1665u, 1666u, 7567u })
CHECK(ClassicWeaponImbue::WindfuryAttackForEnchant(enchantId) == 0);
}