Skip to content

Commit 4d55d34

Browse files
committed
Refactoring
1 parent 5789109 commit 4d55d34

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/main/kotlin/game/game/combat/npcHooks/gargoyle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if (Luna.settings().skills().slayerEquipmentNeeded()) {
6161
} else {
6262
player.sendMessage("I need a Rock hammer to finish this creature off.")
6363
player.combat.target = null
64-
null
64+
nothing()
6565
}
6666
}
6767

src/main/kotlin/game/game/combat/specialAttacks/dragonDagger.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ attack(type = DRAGON_DAGGER,
2929
launched {
3030
attacker.graphic(GRAPHIC)
3131

32-
val damage = CombatDamageRequest.builder(attacker, victim, CombatDamageType.MELEE)
32+
val secondHit = CombatDamageRequest.builder(attacker, victim, CombatDamageType.MELEE)
3333
.setPercentBonusDamage(damageBonus)
3434
.setFlatBonusAccuracy(attackBonus)
3535
.build()
3636
.resolve()
3737

38-
damage.apply()
38+
secondHit.apply()
39+
damage
3940
}
4041
}

src/main/kotlin/game/game/combat/specialAttacks/dragonLongsword.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ attack(type = DRAGON_LONGSWORD,
2020

2121
attack { melee(ANIMATION) }
2222

23-
launched { attacker.graphic(GRAPHIC) }
23+
launched { attacker.graphic(GRAPHIC); damage }
2424
}

src/main/kotlin/game/game/combat/specialAttacks/dragonMace.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ attack(type = DRAGON_MACE,
2121

2222
attack { melee(ANIMATION) }
2323

24-
launched { attacker.graphic(GRAPHIC) }
24+
launched { attacker.graphic(GRAPHIC); damage }
2525
}

0 commit comments

Comments
 (0)