Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21ecfeef17 | ||
|
|
d5be9130aa | ||
|
|
b5871c7be2 | ||
|
|
f9b328b432 |
24
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
24
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description (in English) of what the bug is.
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
10
.github/pull_request_template.md
vendored
Normal file
10
.github/pull_request_template.md
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
## Description
|
||||||
|
<!-- Describe your changes in detail -->
|
||||||
|
|
||||||
|
## Checklist before requesting a review
|
||||||
|
- [ ] I have performed a self-review of my code
|
||||||
|
- [ ] I have tested my changes
|
||||||
|
- [ ] I have added unit tests that prove my changes work
|
||||||
|
|
||||||
|
## Screenshots (if appropriate)
|
||||||
|
<!-- Relevant screenshots of the game client helps everyone understand the changes better -->
|
||||||
@@ -190,6 +190,11 @@ public class MobSkill {
|
|||||||
|
|
||||||
// TODO: avoid output argument banishPlayersOutput
|
// TODO: avoid output argument banishPlayersOutput
|
||||||
public void applyEffect(Character player, Monster monster, boolean skill, List<Character> banishPlayersOutput) {
|
public void applyEffect(Character player, Monster monster, boolean skill, List<Character> banishPlayersOutput) {
|
||||||
|
// See if the MobSkill is successful before doing anything
|
||||||
|
if (!makeChanceResult()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Disease disease = null;
|
Disease disease = null;
|
||||||
Map<MonsterStatus, Integer> stats = new EnumMap<>(MonsterStatus.class);
|
Map<MonsterStatus, Integer> stats = new EnumMap<>(MonsterStatus.class);
|
||||||
List<Integer> reflection = new ArrayList<>();
|
List<Integer> reflection = new ArrayList<>();
|
||||||
@@ -213,12 +218,12 @@ public class MobSkill {
|
|||||||
case REVERSE_INPUT -> disease = Disease.CONFUSE;
|
case REVERSE_INPUT -> disease = Disease.CONFUSE;
|
||||||
case UNDEAD -> disease = Disease.ZOMBIFY;
|
case UNDEAD -> disease = Disease.ZOMBIFY;
|
||||||
case PHYSICAL_IMMUNE -> {
|
case PHYSICAL_IMMUNE -> {
|
||||||
if (makeChanceResult() && !monster.isBuffed(MonsterStatus.MAGIC_IMMUNITY)) {
|
if (!monster.isBuffed(MonsterStatus.MAGIC_IMMUNITY)) {
|
||||||
stats.put(MonsterStatus.WEAPON_IMMUNITY, x);
|
stats.put(MonsterStatus.WEAPON_IMMUNITY, x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case MAGIC_IMMUNE -> {
|
case MAGIC_IMMUNE -> {
|
||||||
if (makeChanceResult() && !monster.isBuffed(MonsterStatus.WEAPON_IMMUNITY)) {
|
if (!monster.isBuffed(MonsterStatus.WEAPON_IMMUNITY)) {
|
||||||
stats.put(MonsterStatus.MAGIC_IMMUNITY, x);
|
stats.put(MonsterStatus.MAGIC_IMMUNITY, x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user