mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 07:02:35 +00:00
[Bug Fix] - Monk AA Spirit of Master Wu (#1775)
* Monk AA Spirit of Master Wu sends message even if it grants 0 extra attacks. * fomatting + put if statement in wrong place.. oops. * Need to push something to set up my Tortoise Github Auth * test * test * test * test * test * requested changes * Update special_attacks.cpp Co-authored-by: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com>
This commit is contained in:
parent
03847fb1ac
commit
0a34809bb3
@ -403,10 +403,16 @@ void Client::OPCombatAbility(const CombatAbility_Struct *ca_atk)
|
|||||||
}
|
}
|
||||||
wuchance /= 4;
|
wuchance /= 4;
|
||||||
}
|
}
|
||||||
// They didn't add a string ID for this.
|
if (extra) {
|
||||||
std::string msg = StringFormat("The spirit of Master Wu fills you! You gain %d additional attack(s).", extra);
|
SendColoredText(
|
||||||
// live uses 400 here -- not sure if it's the best for all clients though
|
400,
|
||||||
SendColoredText(400, msg);
|
fmt::format(
|
||||||
|
"The spirit of Master Wu fills you! You gain {} additional attack{}.",
|
||||||
|
extra,
|
||||||
|
extra != 1 ? "s" : ""
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
auto classic = RuleB(Combat, ClassicMasterWu);
|
auto classic = RuleB(Combat, ClassicMasterWu);
|
||||||
while (extra) {
|
while (extra) {
|
||||||
MonkSpecialAttack(GetTarget(), (classic ? MonkSPA[zone->random.Int(0, 4)] : ca_atk->m_skill));
|
MonkSpecialAttack(GetTarget(), (classic ? MonkSPA[zone->random.Int(0, 4)] : ca_atk->m_skill));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user