mobs no longer double multiply for sitting target
This commit is contained in:
@@ -327,9 +327,9 @@ public class CombatUtilities {
|
|||||||
damage = calculateMobDamage(agent);
|
damage = calculateMobDamage(agent);
|
||||||
}
|
}
|
||||||
if (AbstractWorldObject.IsAbstractCharacter(target)) {
|
if (AbstractWorldObject.IsAbstractCharacter(target)) {
|
||||||
if (((AbstractCharacter) target).isSit()) {
|
//if (((AbstractCharacter) target).isSit()) {
|
||||||
damage *= 2.5f; //increase damage if sitting
|
// damage *= 2.5f; //increase damage if sitting
|
||||||
}
|
//}
|
||||||
return (int) (((AbstractCharacter) target).getResists().getResistedDamage(agent, (AbstractCharacter) target, dt, damage, 0));
|
return (int) (((AbstractCharacter) target).getResists().getResistedDamage(agent, (AbstractCharacter) target, dt, damage, 0));
|
||||||
}
|
}
|
||||||
if (target.getObjectType() == GameObjectType.Building) {
|
if (target.getObjectType() == GameObjectType.Building) {
|
||||||
|
|||||||
Reference in New Issue
Block a user