Skip to content

Commit 3ae9a6c

Browse files
committed
fix fmt
1 parent 3617250 commit 3ae9a6c

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

src/mod_zone_difficulty_scripts.cpp

+3-14
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ class mod_zone_difficulty_unitscript : public UnitScript
113113
if (sZoneDifficulty->IsDebugInfoEnabled && target)
114114
{
115115
if (Player* player = target->ToPlayer()) // Pointless check? Perhaps.
116-
if (player->GetSession())
117-
ChatHandler(player->GetSession()).PSendSysMessage("Spell: {} ({}) Post Nerf Value: {}", spellInfo->SpellName[player->GetSession()->GetSessionDbcLocale()], spellInfo->Id, eff->GetAmount());
116+
ChatHandler(player->GetSession()).PSendSysMessage("Spell: {} ({}) Post Nerf Value: {}", spellInfo->SpellName[player->GetSession()->GetSessionDbcLocale()], spellInfo->Id, eff->GetAmount());
118117
}
119118
}
120119
}
@@ -247,12 +246,7 @@ class mod_zone_difficulty_unitscript : public UnitScript
247246
if (sZoneDifficulty->IsDebugInfoEnabled && attacker)
248247
{
249248
if (Player* player = attacker->ToPlayer())
250-
{
251-
if (player->GetSession())
252-
{
253-
ChatHandler(player->GetSession()).PSendSysMessage("A dot tick will be altered. Pre Nerf Value: %i", damage);
254-
}
255-
}
249+
ChatHandler(player->GetSession()).PSendSysMessage("A dot tick will be altered. Pre Nerf Value: {}", damage);
256250
}
257251

258252
if (sZoneDifficulty->ShouldNerfMap(mapId) && matchingPhase != -1)
@@ -283,12 +277,7 @@ class mod_zone_difficulty_unitscript : public UnitScript
283277
if (sZoneDifficulty->IsDebugInfoEnabled && attacker)
284278
{
285279
if (Player* player = attacker->ToPlayer())
286-
{
287-
if (player->GetSession())
288-
{
289-
ChatHandler(player->GetSession()).PSendSysMessage("A dot tick was altered. Post Nerf Value: %i", damage);
290-
}
291-
}
280+
ChatHandler(player->GetSession()).PSendSysMessage("A dot tick was altered. Post Nerf Value: {}", damage);
292281
}
293282
}
294283
}

0 commit comments

Comments
 (0)