update
This commit is contained in:
@@ -45,6 +45,17 @@ def test_items_change_profile():
|
||||
assert not statsheet.item_is_modeled(ITEMS["unmodeled"])
|
||||
|
||||
|
||||
def test_on_attack_spell_scales_with_attack_speed():
|
||||
# Pro-Attacke-Passive: DPS = Schaden × AS, unabhängig vom Mana-Zyklus.
|
||||
spell = [0, 50, 75, 110, 0, 0, 0]
|
||||
u = unit(spell=spell)
|
||||
u["spell_on_attack"] = True
|
||||
on_attack = statsheet.unit_stats(u, 1, [], ITEMS, None, None)
|
||||
assert on_attack["spell_dps"] == pytest.approx(50 * 0.7)
|
||||
cast = statsheet.unit_stats(unit(spell=spell), 1, [], ITEMS, None, None)
|
||||
assert on_attack["spell_dps"] > cast["spell_dps"]
|
||||
|
||||
|
||||
def test_frontline_casts_more():
|
||||
spell = [0, 300, 450, 700, 0, 0, 0]
|
||||
tank = statsheet.unit_stats(unit(spell=spell), 1, [], ITEMS, None, "frontline")
|
||||
|
||||
Reference in New Issue
Block a user