Skip to content

Commit

Permalink
Fix for Technique of Master Wu triple attack
Browse files Browse the repository at this point in the history
  • Loading branch information
mackal committed May 23, 2014
1 parent c447c25 commit 5af47c5
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions zone/special_attacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,19 +351,14 @@ void Client::OPCombatAbility(const EQApplicationPacket *app) {

//Live AA - Technique of Master Wu
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 };
MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0,4)]);
MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0, 4)]);

int TripleChance = 25;

if (bDoubleSpecialAttack > 100)
TripleChance += TripleChance*(100-bDoubleSpecialAttack)/100;

if(TripleChance > MakeRandomInt(0,100)) {
MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0,4)]);
}
// always 1/4 of the double attack chance, 25% at rank 5 (100/4)
if ((bDoubleSpecialAttack / 4) > MakeRandomInt(0, 99))
MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0, 4)]);
}

if(ReuseTime < 100) {
Expand Down

0 comments on commit 5af47c5

Please sign in to comment.