Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zap action #200

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions clashroyalebuildabot/actions/zap_action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from clashroyalebuildabot import Cards
from clashroyalebuildabot.actions.spell_action import SpellAction


class ZapAction(SpellAction):
CARD = Cards.ZAP
RADIUS = 2.5
MIN_TO_HIT = 3
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import time

from clashroyalebuildabot.actions.archers_action import ArchersAction
from clashroyalebuildabot.actions.arrows_action import ArrowsAction
from clashroyalebuildabot.actions.fireball_action import FireballAction
from clashroyalebuildabot.actions.giant_action import GiantAction
from clashroyalebuildabot.actions.knight_action import KnightAction
from clashroyalebuildabot.actions.minions_action import MinionsAction
from clashroyalebuildabot.actions.minipekka_action import MinipekkaAction
from clashroyalebuildabot.actions.musketeer_action import MusketeerAction
from clashroyalebuildabot.actions.zap_action import ZapAction
from clashroyalebuildabot.bot import Bot

start_time = datetime.now()
Expand All @@ -30,7 +30,7 @@ def update_terminal_title():
def main():
actions = {
ArchersAction,
ArrowsAction,
ZapAction,
FireballAction,
GiantAction,
KnightAction,
Expand Down