RuneHive-Game
Loading...
Searching...
No Matches
OccultNecklaceListener.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.combat.attack.listener.item;
2
3import com.runehive.game.world.entity.combat.CombatType;
4import com.runehive.game.world.entity.combat.attack.listener.ItemCombatListenerSignature;
5import com.runehive.game.world.entity.combat.attack.listener.SimplifiedListener;
6import com.runehive.game.world.entity.mob.Mob;
7
8/**
9 * Handles the Occult necklace listener.
10 * OSRS Wiki: http://oldschoolrunescape.wikia.com/wiki/Occult_necklace
11 *
12 * @author Daniel
13 */
14@ItemCombatListenerSignature(requireAll = false, items = {12002, 19720})
16
17 @Override
18 public int modifyDamage(Mob attacker, Mob defender, int damage) {
19 if (attacker.getStrategy().getCombatType() != CombatType.MAGIC)
20 return damage;
21 return damage * 11 / 10;
22 }
23
24}
Handles the mob class.
Definition Mob.java:66
abstract< T extends Mob > CombatStrategy<? super T > getStrategy()
The combat strategy of the mob.