mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 05:08:26 +00:00
Minor fix to numhits update
New spell effect
This commit is contained in:
+8
-5
@@ -199,6 +199,14 @@ bool Mob::CheckHitChance(Mob* other, SkillUseTypes skillinuse, int Hand, int16 c
|
||||
if(IsClient() && other->IsClient())
|
||||
pvpmode = true;
|
||||
|
||||
CheckNumHitsRemaining(1);
|
||||
|
||||
if (attacker)
|
||||
attacker->CheckNumHitsRemaining(2);
|
||||
|
||||
if (chance_mod >= 10000)
|
||||
return true;
|
||||
|
||||
float bonus;
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
@@ -324,12 +332,7 @@ bool Mob::CheckHitChance(Mob* other, SkillUseTypes skillinuse, int Hand, int16 c
|
||||
else if(chancetohit < 5) {
|
||||
chancetohit = 5;
|
||||
}
|
||||
|
||||
CheckNumHitsRemaining(1);
|
||||
|
||||
if (attacker)
|
||||
attacker->CheckNumHitsRemaining(2);
|
||||
|
||||
//I dont know the best way to handle a garunteed hit discipline being used
|
||||
//agains a garunteed riposte (for example) discipline... for now, garunteed hit wins
|
||||
|
||||
|
||||
Reference in New Issue
Block a user