mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Fix for Technique of Master Wu triple attack
This commit is contained in:
parent
c447c251cd
commit
5af47c5951
@ -351,19 +351,14 @@ void Client::OPCombatAbility(const EQApplicationPacket *app) {
|
|||||||
|
|
||||||
//Live AA - Technique of Master Wu
|
//Live AA - Technique of Master Wu
|
||||||
uint16 bDoubleSpecialAttack = itembonuses.DoubleSpecialAttack + spellbonuses.DoubleSpecialAttack + aabonuses.DoubleSpecialAttack;
|
uint16 bDoubleSpecialAttack = itembonuses.DoubleSpecialAttack + spellbonuses.DoubleSpecialAttack + aabonuses.DoubleSpecialAttack;
|
||||||
if( bDoubleSpecialAttack && (bDoubleSpecialAttack >= 100 || bDoubleSpecialAttack > MakeRandomInt(0,100)) ) {
|
if (bDoubleSpecialAttack && (bDoubleSpecialAttack >= 100 || bDoubleSpecialAttack > MakeRandomInt(0, 99))) {
|
||||||
|
|
||||||
int MonkSPA [5] = { SkillFlyingKick, SkillDragonPunch, SkillEagleStrike, SkillTigerClaw, SkillRoundKick };
|
int MonkSPA [5] = { SkillFlyingKick, SkillDragonPunch, SkillEagleStrike, SkillTigerClaw, SkillRoundKick };
|
||||||
MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0,4)]);
|
MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0, 4)]);
|
||||||
|
|
||||||
int TripleChance = 25;
|
// always 1/4 of the double attack chance, 25% at rank 5 (100/4)
|
||||||
|
if ((bDoubleSpecialAttack / 4) > MakeRandomInt(0, 99))
|
||||||
if (bDoubleSpecialAttack > 100)
|
MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0, 4)]);
|
||||||
TripleChance += TripleChance*(100-bDoubleSpecialAttack)/100;
|
|
||||||
|
|
||||||
if(TripleChance > MakeRandomInt(0,100)) {
|
|
||||||
MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0,4)]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ReuseTime < 100) {
|
if(ReuseTime < 100) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user