Skip to content

Issue #17 solved #52

Open
zofiamilczarek wants to merge 21 commits intoptal:mainfrom
zofiamilczarek:main
Open

Issue #17 solved #52
zofiamilczarek wants to merge 21 commits intoptal:mainfrom
zofiamilczarek:main

Conversation

@zofiamilczarek
Copy link

A structure for adding spells has been created and a spell that deals double damage has been added.

Copy link
Owner

@ptal ptal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice contribution. I have two concerns however:

  1. Can all champions use all spells? I think both archer and warrior can use the double damage spell.
  2. There is no cooldown on the spell, so instead of attacking "normally", we can always use the spell instead, is that right?

}

//for damage spells
public boolean attackEnhanced(Destructible d, int factor) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can create a private attack(Destructible d, int damage) method that is used by both attackEnhanced and attack (to avoid code duplication).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants