|
|
|
@ -229,5 +229,16 @@ namespace EnchantTests |
|
|
|
|
Assert::AreEqual(0.0875f,player->GetAttackRecoveryRateReduction(),L"Lethal Tempo buff should cap at 5 stacks."); |
|
|
|
|
Assert::AreEqual(size_t(1),player->GetBuffs(BuffType::LETHAL_TEMPO).size(),L"Lethal Tempo buff is active."); |
|
|
|
|
} |
|
|
|
|
TEST_METHOD(SecondWindCheck){ |
|
|
|
|
Assert::AreEqual(0.0_Pct,player->GetHPRecoveryPct(),L"HP Recovery Pct is 0% at the start."); |
|
|
|
|
player->Hurt(90,player->OnUpperLevel(),player->GetZ()); |
|
|
|
|
Assert::AreEqual(0.0_Pct,player->GetHPRecoveryPct(),L"HP Recovery Pct is still 0% without Second Wind."); |
|
|
|
|
std::weak_ptr<Item>nullRing{Inventory::AddItem("Null Ring"s)}; |
|
|
|
|
Inventory::EquipItem(nullRing,EquipSlot::RING1); |
|
|
|
|
nullRing.lock()->EnchantItem("Second Wind"); |
|
|
|
|
Assert::AreEqual(1.0_Pct,player->GetHPRecoveryPct(),L"HP Recovery Pct is now 1% with low health with Second Wind."); |
|
|
|
|
player->Heal(11); |
|
|
|
|
Assert::AreEqual(0.0_Pct,player->GetHPRecoveryPct(),L"HP Recovery Pct is now 0% since Second Wind should no longer activate above 20% health."); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |