@@ -113,8 +113,7 @@ class mod_zone_difficulty_unitscript : public UnitScript
113
113
if (sZoneDifficulty ->IsDebugInfoEnabled && target)
114
114
{
115
115
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 ());
118
117
}
119
118
}
120
119
}
@@ -247,12 +246,7 @@ class mod_zone_difficulty_unitscript : public UnitScript
247
246
if (sZoneDifficulty ->IsDebugInfoEnabled && attacker)
248
247
{
249
248
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);
256
250
}
257
251
258
252
if (sZoneDifficulty ->ShouldNerfMap (mapId) && matchingPhase != -1 )
@@ -283,12 +277,7 @@ class mod_zone_difficulty_unitscript : public UnitScript
283
277
if (sZoneDifficulty ->IsDebugInfoEnabled && attacker)
284
278
{
285
279
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);
292
281
}
293
282
}
294
283
}
0 commit comments