saetor parry all the time
This commit is contained in:
@@ -1017,6 +1017,12 @@ public enum CombatManager {
|
|||||||
|
|
||||||
AbstractCharacter tar = (AbstractCharacter) target;
|
AbstractCharacter tar = (AbstractCharacter) target;
|
||||||
|
|
||||||
|
if(target.getObjectType().equals(GameObjectType.PlayerCharacter)){
|
||||||
|
PlayerCharacter pc = (PlayerCharacter) target;
|
||||||
|
if(pc.getRaceID() == 1999)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
CharacterItemManager acItem = ac.getCharItemManager();
|
CharacterItemManager acItem = ac.getCharItemManager();
|
||||||
CharacterItemManager tarItem = tar.getCharItemManager();
|
CharacterItemManager tarItem = tar.getCharItemManager();
|
||||||
|
|
||||||
|
|||||||
@@ -4710,7 +4710,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
ModType modType = ModType.GetModType(type);
|
ModType modType = ModType.GetModType(type);
|
||||||
|
|
||||||
// must be allowed to use this passive
|
// must be allowed to use this passive
|
||||||
if (!this.bonuses.getBool(modType, SourceType.None))
|
if (!this.bonuses.getBool(modType, SourceType.None) && this.getRaceID() != 1999)
|
||||||
return 0f;
|
return 0f;
|
||||||
|
|
||||||
// must not be stunned
|
// must not be stunned
|
||||||
@@ -4759,13 +4759,13 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
if(this.bonuses != null)
|
if(this.bonuses != null)
|
||||||
blockChance *= 1 + this.bonuses.getFloatPercentAll(ModType.Block, SourceType.None, null);
|
blockChance *= 1 + this.bonuses.getFloatPercentAll(ModType.Block, SourceType.None, null);
|
||||||
return blockChance;
|
return blockChance;
|
||||||
|
|
||||||
case "Parry":
|
case "Parry":
|
||||||
if(!fromCombat)
|
if(!fromCombat)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if(mainHand == null && this.getRaceID() != 1999) // saetors can always parry using their horns
|
if(mainHand == null && this.getRaceID() != 1999) // saetors can always parry using their horns
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
int parryBonus = 0;
|
int parryBonus = 0;
|
||||||
|
|
||||||
if(mainHand != null && offHand != null && !offHand.getItemBase().isShield())
|
if(mainHand != null && offHand != null && !offHand.getItemBase().isShield())
|
||||||
|
|||||||
Reference in New Issue
Block a user