def affect(target, effect_spec):
    effect_type = effect_spec['effect_type']
    del effect_spec['effect_type']
    effect_spec['target'] = target

    new_effect = effect_type(**effect_spec)

    add_history_value(target, 'hit_points')

    new_effect.trigger(Dying())
Triggers an effect on target
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/cutesy/dictionary.py/affect