Core: Cleaning up hungarian notation - Phase3: pTarget -> target
This commit is contained in:
1 parent
169f5da8c3
commit
70115f52f7
212 files changed
+1970
-1970
No files matched your search
@@ -222,13 +222,13 @@ public:
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* pTarget = GetHitUnit())
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
Unit* pCaster = GetCaster();
|
||||
if (urand(0, 99) < 15)
|
||||
pCaster->CastSpell(pCaster, SPELL_GNOMISH_DEATH_RAY_SELF, true, NULL); // failure
|
||||
else
|
||||
pCaster->CastSpell(pTarget, SPELL_GNOMISH_DEATH_RAY_TARGET, true, NULL);
|
||||
pCaster->CastSpell(target, SPELL_GNOMISH_DEATH_RAY_TARGET, true, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -394,7 +394,7 @@ public:
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* pTarget = GetHitUnit())
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
uint32 spellId = SPELL_NET_O_MATIC_TRIGGERED3;
|
||||
uint32 roll = urand(0, 99);
|
||||
@@ -403,7 +403,7 @@ public:
|
||||
else if (roll < 4) // 2% for 20 sec root, charge to target (off-like chance unknown)
|
||||
spellId = SPELL_NET_O_MATIC_TRIGGERED2;
|
||||
|
||||
GetCaster()->CastSpell(pTarget, spellId, true, NULL);
|
||||
GetCaster()->CastSpell(target, spellId, true, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -572,7 +572,7 @@ public:
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* pTarget = GetHitUnit())
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
Unit* pCaster = GetCaster();
|
||||
|
||||
@@ -588,17 +588,17 @@ public:
|
||||
{
|
||||
spellId = SPELL_POLYMORPH;
|
||||
if (urand(0, 100) <= 30) // 30% chance to self-cast
|
||||
pTarget = pCaster;
|
||||
target = pCaster;
|
||||
}
|
||||
else if (rand < 95) // Enveloping Winds (15% chance)
|
||||
spellId = SPELL_ENVELOPING_WINDS;
|
||||
else // Summon Felhund minion (5% chance)
|
||||
{
|
||||
spellId = SPELL_SUMMON_FELHOUND_MINION;
|
||||
pTarget = pCaster;
|
||||
target = pCaster;
|
||||
}
|
||||
|
||||
pCaster->CastSpell(pTarget, spellId, true, GetCastItem());
|
||||
pCaster->CastSpell(target, spellId, true, GetCastItem());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user