from .thrower_dragon import ThrowerDragon
from utils import apply_effect, make_scare

class ScaryThrower(ThrowerDragon):
    """ThrowerDragon that intimidates Terminators, making them back away instead of advancing."""

    name = 'Scary'
    # BEGIN 4.4
    implemented = True  # Change to True to view in the GUI
    food_cost=6

    # END 4.4

    def throw_at(self, target):
        # BEGIN 4.4
        "*** YOUR CODE HERE ***"
        if target.ho_gya==0:
           apply_effect(make_scare,target,2)
           target.ho_gya=1
        else:
           super().throw_at(target)
        # END 4.4

86f6dfb28aeeb98fde8784c92b0392d094b0b61a
<mask token>

<mask token>


class ScaryThrower(ThrowerDragon):
    <mask token>
    name = 'Scary'
    implemented = True
    food_cost = 6

    def throw_at(self, target):
        """*** YOUR CODE HERE ***"""
        if target.ho_gya == 0:
            apply_effect(make_scare, target, 2)
            target.ho_gya = 1
        else:
            super().throw_at(target)

<mask token>


class ScaryThrower(ThrowerDragon):
    """ThrowerDragon that intimidates Terminators, making them back away instead of advancing."""
    name = 'Scary'
    implemented = True
    food_cost = 6

    def throw_at(self, target):
        """*** YOUR CODE HERE ***"""
        if target.ho_gya == 0:
            apply_effect(make_scare, target, 2)
            target.ho_gya = 1
        else:
            super().throw_at(target)

from .thrower_dragon import ThrowerDragon
from utils import apply_effect, make_scare


class ScaryThrower(ThrowerDragon):
    """ThrowerDragon that intimidates Terminators, making them back away instead of advancing."""
    name = 'Scary'
    implemented = True
    food_cost = 6

    def throw_at(self, target):
        """*** YOUR CODE HERE ***"""
        if target.ho_gya == 0:
            apply_effect(make_scare, target, 2)
            target.ho_gya = 1
        else:
            super().throw_at(target)

from .thrower_dragon import ThrowerDragon
from utils import apply_effect, make_scare

class ScaryThrower(ThrowerDragon):
    """ThrowerDragon that intimidates Terminators, making them back away instead of advancing."""

    name = 'Scary'
    # BEGIN 4.4
    implemented = True  # Change to True to view in the GUI
    food_cost=6

    # END 4.4

    def throw_at(self, target):
        # BEGIN 4.4
        "*** YOUR CODE HERE ***"
        if target.ho_gya==0:
           apply_effect(make_scare,target,2)
           target.ho_gya=1
        else:
           super().throw_at(target)
        # END 4.4
