diff options
author | Aokromes <aokromes@gmail.com> | 2017-04-29 10:53:48 +0200 |
---|---|---|
committer | Aokromes <aokromes@gmail.com> | 2017-04-29 10:53:48 +0200 |
commit | c5e211f07e8932f7d7b048ebb50e5d39fec859e5 (patch) | |
tree | f8c7e756fa90b7167fe2bf8809fea644e4b1ab96 | |
parent | 409cabf0e6903e2032da9a786475b4e3ce1937ef (diff) |
Coding style
-rw-r--r-- | src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp b/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp index ee816c4c5a8..7dd1ddcf63a 100644 --- a/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp +++ b/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp @@ -144,13 +144,13 @@ public: void Initialize() { hitBySpell = false; - PercentHP = urand(15, 55); + percentHP = urand(15, 55); } void Reset() override { Initialize(); - me->SetHealth(me->CountPctFromMaxHealth(PercentHP)); + me->SetHealth(me->CountPctFromMaxHealth(percentHP)); } void SpellHit(Unit* caster, SpellInfo const* spell) override @@ -162,7 +162,7 @@ public: } if (spell->Id == SPELL_FLASH_HEAL) if (caster->GetTypeId() == TYPEID_PLAYER) - caster->ToPlayer()->KilledMonsterCredit(QUEST_KILL_CREDIT); + caster->ToPlayer()->KilledMonsterCredit(QUEST_KILL_CREDIT); } void UpdateAI(uint32 diff) override @@ -177,7 +177,7 @@ public: switch (eventId) { case EVENT_RESET_HEALTH: - me->SetHealth(me->CountPctFromMaxHealth(PercentHP)); + me->SetHealth(me->CountPctFromMaxHealth(percentHP)); hitBySpell = false; break; default: @@ -187,7 +187,7 @@ public: } private: EventMap _events; - int8 PercentHP; + int8 percentHP; bool hitBySpell; }; @@ -261,7 +261,6 @@ public: struct npc_milos_gyro_AI : public VehicleAI { npc_milos_gyro_AI(Creature* creature) : VehicleAI(creature) - { Initialize(); } |