can block spells
This commit is contained in:
@@ -4722,8 +4722,8 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
switch(type){
|
switch(type){
|
||||||
case "Block":
|
case "Block":
|
||||||
if(!fromCombat)
|
//if(!fromCombat)
|
||||||
return 0;
|
//return 0;
|
||||||
|
|
||||||
if(offHand == null)
|
if(offHand == null)
|
||||||
return 0;
|
return 0;
|
||||||
@@ -4748,7 +4748,10 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
float blockChance = ((passiveSkill.getModifiedAmount() + blockBonusFromShield) / 4) + levelDifference;
|
int divisr = 4;
|
||||||
|
if(!fromCombat)
|
||||||
|
divisr = 16;
|
||||||
|
float blockChance = ((passiveSkill.getModifiedAmount() + blockBonusFromShield) / divisr) + levelDifference;
|
||||||
if(this.bonuses != null)
|
if(this.bonuses != null)
|
||||||
blockChance *= 1 + this.bonuses.getFloatPercentAll(ModType.Block, SourceType.None);
|
blockChance *= 1 + this.bonuses.getFloatPercentAll(ModType.Block, SourceType.None);
|
||||||
return blockChance;
|
return blockChance;
|
||||||
|
|||||||
Reference in New Issue
Block a user