aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/BattleGround.cpp4
-rw-r--r--src/game/BattleGroundWS.h2
-rw-r--r--src/game/CMakeLists.txt4
-rw-r--r--src/game/Chat.cpp2
-rw-r--r--src/game/DBCStructure.h2
-rw-r--r--src/game/GridNotifiersImpl.h4
-rw-r--r--src/game/InstanceData.cpp4
-rw-r--r--src/game/Language.h2
-rw-r--r--src/game/Map.cpp2
-rw-r--r--src/game/Map.h2
-rw-r--r--src/game/MapManager.cpp2
-rw-r--r--src/game/MiscHandler.cpp10
-rw-r--r--src/game/Object.cpp4
-rw-r--r--src/game/ObjectMgr.cpp6
-rw-r--r--src/game/Pet.cpp6
-rw-r--r--src/game/Player.cpp10
-rw-r--r--src/game/SharedDefines.h2
-rw-r--r--src/game/Spell.cpp2
-rw-r--r--src/game/SpellAuras.cpp16
-rw-r--r--src/game/SpellEffects.cpp8
-rw-r--r--src/game/SpellMgr.cpp2
-rw-r--r--src/game/TicketHandler.cpp4
-rw-r--r--src/game/TicketMgr.cpp4
-rw-r--r--src/game/TicketMgr.h4
-rw-r--r--src/game/Unit.cpp16
25 files changed, 62 insertions, 62 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index 9f1e9f6218d..9add7ed98da 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -795,7 +795,7 @@ void BattleGround::RewardMark(Player *plr,uint32 count)
if(!plr || !count)
return;
- BattleGroundMarks mark;
+ BattleGroundMarks mark;
switch(GetTypeID())
{
case BATTLEGROUND_AV:
@@ -807,7 +807,7 @@ void BattleGround::RewardMark(Player *plr,uint32 count)
case BATTLEGROUND_AB:
mark = ITEM_AB_MARK_OF_HONOR;
break;
- case BATTLEGROUND_EY:
+ case BATTLEGROUND_EY:
mark = ITEM_EY_MARK_OF_HONOR;
break;
default:
diff --git a/src/game/BattleGroundWS.h b/src/game/BattleGroundWS.h
index 7c3edceddd8..906bccfe6ab 100644
--- a/src/game/BattleGroundWS.h
+++ b/src/game/BattleGroundWS.h
@@ -29,7 +29,7 @@ enum BG_WS_TimerOrScore
BG_WS_FLAG_RESPAWN_TIME = 23000,
BG_WS_FLAG_DROP_TIME = 10000,
BG_WS_SPELL_FORCE_TIME = 600000,
- BG_WS_SPELL_BRUTAL_TIME = 900000
+ BG_WS_SPELL_BRUTAL_TIME = 900000
};
enum BG_WS_Sound
diff --git a/src/game/CMakeLists.txt b/src/game/CMakeLists.txt
index d8079ee8418..97f6c3bde6f 100644
--- a/src/game/CMakeLists.txt
+++ b/src/game/CMakeLists.txt
@@ -205,7 +205,7 @@ SET(game_STAT_SRCS
PointMovementGenerator.cpp
PointMovementGenerator.h
PoolHandler.cpp
- PoolHandler.h
+ PoolHandler.h
PossessedAI.cpp
PossessedAI.h
QueryHandler.cpp
@@ -245,7 +245,7 @@ SET(game_STAT_SRCS
TemporarySummon.h
TicketHandler.cpp
TicketMgr.cpp
- TicketMgr.h
+ TicketMgr.h
Tools.cpp
Tools.h
TotemAI.cpp
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index 48b6a195a14..1603d7b8fdf 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -1034,7 +1034,7 @@ int ChatHandler::ParseCommands(const char* text)
if(!ExecuteCommandInTable(getCommandTable(), text, fullcmd))
{
- if(m_session && m_session->GetSecurity() == SEC_PLAYER)
+ if(m_session && m_session->GetSecurity() == SEC_PLAYER)
return 0;
SendSysMessage(LANG_NO_CMD);
}
diff --git a/src/game/DBCStructure.h b/src/game/DBCStructure.h
index fa5036c56d2..c46de44bf1f 100644
--- a/src/game/DBCStructure.h
+++ b/src/game/DBCStructure.h
@@ -660,7 +660,7 @@ struct CinematicCameraEntry
float start_x; // 3
float start_y; // 4
float start_z; // 5
- float unk6; // 6 speed?
+ float unk6; // 6 speed?
};
*/
diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h
index 97daafa6ced..7fc6c147f5b 100644
--- a/src/game/GridNotifiersImpl.h
+++ b/src/game/GridNotifiersImpl.h
@@ -128,7 +128,7 @@ Trinity::CreatureRelocationNotifier::Visit(PlayerMapType &m)
continue;
iter->getSource()->UpdateVisibilityOf(&i_creature);
-
+
PlayerCreatureRelocationWorker(iter->getSource(), &i_creature);
}
}
@@ -144,7 +144,7 @@ Trinity::CreatureRelocationNotifier::Visit(CreatureMapType &m)
{
if(iter->getSource()->m_Notified)
continue;
-
+
if(!iter->getSource()->isAlive())
continue;
diff --git a/src/game/InstanceData.cpp b/src/game/InstanceData.cpp
index bd8f510e594..808ebca2f59 100644
--- a/src/game/InstanceData.cpp
+++ b/src/game/InstanceData.cpp
@@ -30,8 +30,8 @@ void InstanceData::SaveToDB()
CharacterDatabase.PExecute("UPDATE instance SET data = '%s' WHERE id = '%d'", data.c_str(), instance->GetInstanceId());
}
-void InstanceData::HandleGameObject(uint64 GUID, bool open, GameObject *go)
-{
+void InstanceData::HandleGameObject(uint64 GUID, bool open, GameObject *go)
+{
if(!go)
go = instance->GetGameObjectInMap(GUID);
if(go)
diff --git a/src/game/Language.h b/src/game/Language.h
index aebcd93a008..b58a5b82b60 100644
--- a/src/game/Language.h
+++ b/src/game/Language.h
@@ -767,7 +767,7 @@ enum TrinityStrings
LANG_RESET_PET_TALENTS_ONLINE = 1127,
// Room for more level 3 1128-1199 not used
- // AV
+ // AV
LANG_BG_AV_ALLY = 1200,
LANG_BG_AV_HORDE = 1201,
LANG_BG_AV_TOWER_TAKEN = 1202,
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index 29b7515750e..d6f06051c59 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -495,7 +495,7 @@ Map::Add(T *obj)
AddToGrid(obj,grid,cell);
obj->AddToWorld();
-
+
if(obj->isActiveObject())
AddToActive(obj);
diff --git a/src/game/Map.h b/src/game/Map.h
index 0719ec602ef..4d00a287b03 100644
--- a/src/game/Map.h
+++ b/src/game/Map.h
@@ -219,7 +219,7 @@ struct CreatureMover
struct InstanceTemplate
{
uint32 map;
- uint32 parent;
+ uint32 parent;
uint32 maxPlayers;
uint32 maxPlayersHeroic;
uint32 reset_delay; // FIX ME: now exist normal/heroic raids with possible different time of reset.
diff --git a/src/game/MapManager.cpp b/src/game/MapManager.cpp
index b2856b1fb1f..e083302e045 100644
--- a/src/game/MapManager.cpp
+++ b/src/game/MapManager.cpp
@@ -214,7 +214,7 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player)
InstanceTemplate const* instance = objmgr.GetInstanceTemplate(mapid);
if(!instance)
return false;
-
+
return player->Satisfy(objmgr.GetAccessRequirement(instance->access_id), mapid, true);
}
else
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp
index 81cdace92c8..ca2c5609692 100644
--- a/src/game/MiscHandler.cpp
+++ b/src/game/MiscHandler.cpp
@@ -566,12 +566,12 @@ void WorldSession::HandleAddFriendOpcodeCallBack(QueryResult *result, uint32 acc
uint64 friendGuid;
uint32 team;
FriendsResult friendResult;
-
+
WorldSession * session = sWorld.FindSession(accountId);
if(!session || !session->GetPlayer())
return;
-
+
friendResult = FRIEND_NOT_FOUND;
friendGuid = 0;
@@ -655,12 +655,12 @@ void WorldSession::HandleAddIgnoreOpcodeCallBack(QueryResult *result, uint32 acc
{
uint64 IgnoreGuid;
FriendsResult ignoreResult;
-
+
WorldSession * session = sWorld.FindSession(accountId);
if(!session || !session->GetPlayer())
return;
-
+
ignoreResult = FRIEND_IGNORE_NOT_FOUND;
IgnoreGuid = 0;
@@ -679,7 +679,7 @@ void WorldSession::HandleAddIgnoreOpcodeCallBack(QueryResult *result, uint32 acc
else
{
ignoreResult = FRIEND_IGNORE_ADDED;
-
+
// ignore list full
if(!session->GetPlayer()->GetSocial()->AddToSocialList(GUID_LOPART(IgnoreGuid), true))
ignoreResult = FRIEND_IGNORE_FULL;
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 0fd7046a97f..b5f25596af3 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1170,8 +1170,8 @@ void WorldObject::SetWorldObject(bool on)
{
if(!IsInWorld())
return;
-
- GetMap()->AddObjectToSwitchList(this, on);
+
+ GetMap()->AddObjectToSwitchList(this, on);
}
void WorldObject::setActive( bool on )
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index f15e02118c6..a4128249468 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -5078,7 +5078,7 @@ void ObjectMgr::LoadAreaTriggerTeleports()
uint32 count = 0;
- // 0 1 2 3 4 5 6
+ // 0 1 2 3 4 5 6
QueryResult *result = WorldDatabase.Query("SELECT id, access_id, target_map, target_position_x, target_position_y, target_position_z, target_orientation FROM areatrigger_teleport");
if( !result )
{
@@ -5119,7 +5119,7 @@ void ObjectMgr::LoadAreaTriggerTeleports()
sLog.outErrorDb("Area trigger (ID:%u) does not exist in `AreaTrigger.dbc`.",Trigger_ID);
continue;
}
-
+
MapEntry const* mapEntry = sMapStore.LookupEntry(at.target_mapId);
if(!mapEntry)
{
@@ -5237,7 +5237,7 @@ void ObjectMgr::LoadAccessRequirements()
ar.heroicQuest = 0;
}
}
-
+
if(ar.quest)
{
QuestMap::iterator qReqItr = mQuestTemplates.find(ar.quest);
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index 35222ca6ec5..1d45ed3a7fd 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -1148,7 +1148,7 @@ void Pet::_SaveAuras()
{
// skip all auras from spell that apply at cast SPELL_AURA_MOD_SHAPESHIFT or pet area auras.
// do not save single target auras (unless they were cast by the player)
- if (itr->second->IsPassive()
+ if (itr->second->IsPassive()
|| (itr->second->GetCasterGUID() != GetGUID() && itr->second->IsSingleTarget()))
continue;
SpellEntry const *spellInfo = itr->second->GetSpellProto();
@@ -1168,8 +1168,8 @@ void Pet::_SaveAuras()
CharacterDatabase.PExecute("INSERT INTO pet_aura (guid,caster_guid,spell,effect_mask,stackcount,amount0, amount1, amount2,maxduration,remaintime,remaincharges) "
"VALUES ('%u', '" I64FMTD "', '%u', '%u', '%u', '%u', '%u', '%d', '%d', '%d', '%d')",
- m_charmInfo->GetPetNumber(), itr->second->GetCasterGUID(),(uint32)itr->second->GetId(), (uint32)itr->second->GetEffectMask(),
- (uint32)itr->second->GetStackAmount(), amounts[0], amounts[1], amounts[2]
+ m_charmInfo->GetPetNumber(), itr->second->GetCasterGUID(),(uint32)itr->second->GetId(), (uint32)itr->second->GetEffectMask(),
+ (uint32)itr->second->GetStackAmount(), amounts[0], amounts[1], amounts[2]
,int(itr->second->GetAuraMaxDuration()),int(itr->second->GetAuraDuration()),int(itr->second->GetAuraCharges()));
}
}
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 8dcb28224f7..730a91a50c3 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -5960,7 +5960,7 @@ bool Player::RewardHonor(Unit *uVictim, uint32 groupsize, float honor, bool pvpt
{
// Check if allowed to receive it in current map
uint8 MapType = sWorld.getConfig(CONFIG_PVP_TOKEN_MAP_TYPE);
- if( (MapType == 1 && !InBattleGround() && !HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP))
+ if( (MapType == 1 && !InBattleGround() && !HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP))
|| (MapType == 2 && !HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP))
|| (MapType == 3 && !InBattleGround()) )
return true;
@@ -15841,7 +15841,7 @@ void Player::_SaveAuras()
{
// skip all auras from spell that apply at cast SPELL_AURA_MOD_SHAPESHIFT or pet area auras.
// do not save single target auras (unless they were cast by the player)
- if (itr->second->IsPassive()
+ if (itr->second->IsPassive()
|| (itr->second->GetCasterGUID() != GetGUID() && itr->second->IsSingleTarget())
|| itr->second->IsRemovedOnShapeLost())
continue;
@@ -15861,8 +15861,8 @@ void Player::_SaveAuras()
CharacterDatabase.PExecute("INSERT INTO character_aura (guid,caster_guid,spell,effect_mask,stackcount,amount0, amount1, amount2,maxduration,remaintime,remaincharges) "
"VALUES ('%u', '" I64FMTD "', '%u', '%u', '%d', '%d', '%d', '%d', '%d', '%d', '%d')",
- GetGUIDLow(), itr->second->GetCasterGUID(),(uint32)itr->second->GetId(), (uint32)itr->second->GetEffectMask(),
- (uint32)itr->second->GetStackAmount(), (int32)amounts[0], (int32)amounts[1], (int32)amounts[2]
+ GetGUIDLow(), itr->second->GetCasterGUID(),(uint32)itr->second->GetId(), (uint32)itr->second->GetEffectMask(),
+ (uint32)itr->second->GetStackAmount(), (int32)amounts[0], (int32)amounts[1], (int32)amounts[2]
,int(itr->second->GetAuraMaxDuration()),int(itr->second->GetAuraDuration()),int(itr->second->GetAuraCharges()));
}
}
@@ -16872,7 +16872,7 @@ void Player::CharmSpellInitialize()
data << uint8(count); // cooldowns count
data.hexlike();
-
+
GetSession()->SendPacket(&data);
}
diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h
index 64973bcd080..61c266854ff 100644
--- a/src/game/SharedDefines.h
+++ b/src/game/SharedDefines.h
@@ -143,7 +143,7 @@ enum Powers
MAX_POWERS = 7,
POWER_ALL = 127, // default for class?
POWER_HEALTH = 0xFFFFFFFE // (-2 as signed value)
-};
+};
enum SpellSchools
{
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 8291056e15f..16cfe5b0e60 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -687,7 +687,7 @@ void Spell::prepareDataForTriggerSystem()
if (m_spellInfo->SpellFamilyFlags[1] & 0x00000010 || m_spellInfo->SpellFamilyFlags[0] & 0x1001E000) m_canTrigger = true;
break;
case SPELLFAMILY_HUNTER: // Hunter Rapid Killing/Explosive Trap Effect/Immolation Trap Effect/Frost Trap Aura/Snake Trap Effect/Explosive Shot
- if (m_spellInfo->SpellFamilyFlags[1] & 0x01002000
+ if (m_spellInfo->SpellFamilyFlags[1] & 0x01002000
|| m_spellInfo->SpellFamilyFlags[0] & 0x00000214 ||
m_spellInfo->SpellFamilyFlags[2] & 0x200) m_canTrigger = true;
break;
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index d6108c3ea93..03274b4b74b 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -232,7 +232,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
&AuraEffect::HandleNoImmediateEffect, //178 SPELL_AURA_MOD_DEBUFF_RESISTANCE implemented in Unit::MagicSpellHitResult
&AuraEffect::HandleNoImmediateEffect, //179 SPELL_AURA_MOD_ATTACKER_SPELL_CRIT_CHANCE implemented in Unit::SpellCriticalBonus
&AuraEffect::HandleNoImmediateEffect, //180 SPELL_AURA_MOD_FLAT_SPELL_DAMAGE_VERSUS implemented in Unit::SpellDamageBonus
- &AuraEffect::HandleUnused, //181 unused (3.0.8a) old SPELL_AURA_MOD_FLAT_SPELL_CRIT_DAMAGE_VERSUS
+ &AuraEffect::HandleUnused, //181 unused (3.0.8a) old SPELL_AURA_MOD_FLAT_SPELL_CRIT_DAMAGE_VERSUS
&AuraEffect::HandleAuraModResistenceOfStatPercent, //182 SPELL_AURA_MOD_RESISTANCE_OF_STAT_PERCENT
&AuraEffect::HandleNULL, //183 SPELL_AURA_MOD_CRITICAL_THREAT only used in 28746
&AuraEffect::HandleNoImmediateEffect, //184 SPELL_AURA_MOD_ATTACKER_MELEE_HIT_CHANCE implemented in Unit::RollMeleeOutcomeAgainst
@@ -367,7 +367,7 @@ m_auraSlot(MAX_AURAS), m_auraLevel(1), m_procCharges(0), m_stackAmount(1),m_aura
{
m_caster_guid = target->GetGUID();
//damage = m_currentBasePoints+1; // stored value-1
- m_maxduration = target->CalcSpellDuration(m_spellProto);
+ m_maxduration = target->CalcSpellDuration(m_spellProto);
}
else
{
@@ -423,7 +423,7 @@ m_auraSlot(MAX_AURAS), m_auraLevel(1), m_procCharges(0), m_stackAmount(1),m_aura
}
}
- // Aura is positive when it is casted by friend and at least one aura is positive
+ // Aura is positive when it is casted by friend and at least one aura is positive
// or when it is casted by enemy and at least one aura is negative
bool swap=false;
if (!caster || caster==target)
@@ -526,7 +526,7 @@ AreaAuraEffect::AreaAuraEffect(Aura * parentAura, uint32 effIndex, int32 * curre
if (m_spellProto->Effect[effIndex] == SPELL_EFFECT_APPLY_AREA_AURA_ENEMY)
m_radius = GetSpellRadiusForHostile(sSpellRadiusStore.LookupEntry(GetSpellProto()->EffectRadiusIndex[m_effIndex]));
- else
+ else
m_radius = GetSpellRadiusForFriend(sSpellRadiusStore.LookupEntry(GetSpellProto()->EffectRadiusIndex[m_effIndex]));
if(Player* modOwner = caster_ptr->GetSpellModOwner())
@@ -6166,7 +6166,7 @@ void AuraEffect::PeriodicTick()
}
// Anger Management
- // amount = 1+ 16 = 17 = 3,4*5 = 10,2*5/3
+ // amount = 1+ 16 = 17 = 3,4*5 = 10,2*5/3
// so 17 is rounded amount for 5 sec tick grow ~ 1 range grow in 3 sec
if(pt == POWER_RAGE)
m_target->ModifyPower(pt, m_amount*3/5);
@@ -6748,8 +6748,8 @@ void AuraEffect::HandleModPossessPet(bool apply, bool Real)
if(apply)
{
if(caster->GetGuardianPet() != m_target)
- return;
-
+ return;
+
m_target->SetCharmedOrPossessedBy(caster, true);
}
else
@@ -6777,7 +6777,7 @@ void AuraEffect::HandleModCharm(bool apply, bool Real)
{
if(int32(m_target->getLevel()) > m_amount)
return;
-
+
m_target->SetCharmedOrPossessedBy(caster, false);
}
else
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index b5e6b36c463..7d56e3442b3 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2716,7 +2716,7 @@ void Spell::DoCreateItem(uint32 i, uint32 itemtype)
// we succeeded in creating at least one item, so a levelup is possible
player->UpdateCraftSkill(m_spellInfo->Id);
- }
+ }
}
void Spell::EffectCreateItem(uint32 i)
@@ -3920,7 +3920,7 @@ void Spell::EffectSummonPet(uint32 i)
Pet* pet = owner->SummonPet(petentry, x, y, z, owner->GetOrientation(), SUMMON_PET, 0);
if(!pet)
return;
-
+
if(m_caster->GetTypeId() == TYPEID_UNIT)
{
if ( ((Creature*)m_caster)->isTotem() )
@@ -4572,7 +4572,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
{
if(!unitTarget)
return;
-
+
switch(((Player*)unitTarget)->GetBaseSkillValue(762))
{
case 75: unitTarget->CastSpell(unitTarget, 51621, true); break;;
@@ -4607,7 +4607,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
int bag=19;
int slot=0;
Item* item = NULL;
-
+
while (bag < 256)
{
item = ((Player*)m_caster)->GetItemByPos(bag,slot);
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 6a7b5b2e2af..a8bdcb1ad5d 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1691,7 +1691,7 @@ void SpellMgr::LoadSpellChains()
bar.step();
RankErrorMap.insert(std::pair<char const *, std::multimap<SpellRankEntry, SpellRankValue>::iterator>(itr2->second.Rank,itr2));
}
-
+
bool error=false;
//if strict == true strict check is not needed
if (!itr->second.strict)
diff --git a/src/game/TicketHandler.cpp b/src/game/TicketHandler.cpp
index 068a1592df1..ff920cab04b 100644
--- a/src/game/TicketHandler.cpp
+++ b/src/game/TicketHandler.cpp
@@ -1,7 +1,7 @@
/*
- * Copyright (C) 2005-2009 MaNGOS
+ * Copyright (C) 2005-2009 MaNGOS
*
- * Copyright (C) 2008-2009 Trinity
+ * Copyright (C) 2008-2009 Trinity
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/game/TicketMgr.cpp b/src/game/TicketMgr.cpp
index 8d89bf9d20b..82079105aef 100644
--- a/src/game/TicketMgr.cpp
+++ b/src/game/TicketMgr.cpp
@@ -1,7 +1,7 @@
/*
- * Copyright (C) 2005-2009 MaNGOS
+ * Copyright (C) 2005-2009 MaNGOS
*
- * Copyright (C) 2008-2009 Trinity
+ * Copyright (C) 2008-2009 Trinity
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/game/TicketMgr.h b/src/game/TicketMgr.h
index bee4d49fa0d..a180268a552 100644
--- a/src/game/TicketMgr.h
+++ b/src/game/TicketMgr.h
@@ -1,7 +1,7 @@
/*
- * Copyright (C) 2005-2009 MaNGOS
+ * Copyright (C) 2005-2009 MaNGOS
*
- * Copyright (C) 2008-2009 Trinity
+ * Copyright (C) 2008-2009 Trinity
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 9d9dcd3ae7e..16623c00b69 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -3155,7 +3155,7 @@ uint32 Unit::GetWeaponSkillValue (WeaponAttackType attType, Unit const* target)
if(attType != BASE_ATTACK && !item )
{
if(attType == RANGED_ATTACK && getClass() == CLASS_PALADIN) //hammer
- return GetMaxSkillValueForLevel();
+ return GetMaxSkillValueForLevel();
return 0;
}
@@ -3232,7 +3232,7 @@ void Unit::_UpdateSpells( uint32 time )
if ((*i).second)
{
if ( !(*i).second->GetAuraDuration() && !((*i).second->IsPermanent() || ((*i).second->IsPassive())) )
- {
+ {
RemoveAura(i, AURA_REMOVE_BY_EXPIRE);
}
else
@@ -3761,7 +3761,7 @@ bool Unit::AddAura(Aura *Aur)
m_interruptableAuras.push_back(Aur);
AddInterruptMask(Aur->GetSpellProto()->AuraInterruptFlags);
}
- if((Aur->GetSpellProto()->Attributes & SPELL_ATTR_BREAKABLE_BY_DAMAGE
+ if((Aur->GetSpellProto()->Attributes & SPELL_ATTR_BREAKABLE_BY_DAMAGE
&& !Aur->IsAuraType(SPELL_AURA_MOD_POSSESS)) //only dummy aura is breakable
|| (Aur->GetSpellProto()->Mechanic==MECHANIC_KNOCKOUT && Aur->IsAuraType(SPELL_AURA_MOD_STUN)))
{
@@ -6071,7 +6071,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
return false;
}
// Totemic Power (The Earthshatterer set)
- case 28823:
+ case 28823:
{
if( !pVictim )
return false;
@@ -6437,7 +6437,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
Unit::AuraEffectList const& decSpeedList = pVictim->GetAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
for(Unit::AuraEffectList::const_iterator iter = decSpeedList.begin(); iter != decSpeedList.end(); ++iter)
{
- if((*iter)->GetSpellProto()->SpellFamilyName==SPELLFAMILY_DEATHKNIGHT
+ if((*iter)->GetSpellProto()->SpellFamilyName==SPELLFAMILY_DEATHKNIGHT
&& (*iter)->GetCasterGUID() == GetGUID()
&& (*iter)->GetSpellProto()->Dispel == DISPEL_DISEASE)
{
@@ -8091,7 +8091,7 @@ void Unit::SetCharm(Unit* charm, bool apply)
if(!charm->RemoveUInt64Value(UNIT_FIELD_CHARMEDBY, GetGUID()))
sLog.outCrash("Unit %u is being uncharmed, but it has another charmer %u", charm->GetEntry(), charm->GetCharmerGUID());
-
+
m_Controlled.erase(charm);
}
}
@@ -8122,11 +8122,11 @@ void Unit::RemoveAllControlled()
{
target->RemoveCharmAuras();
}
- else if(target->GetOwnerGUID() == GetGUID()
+ else if(target->GetOwnerGUID() == GetGUID()
&& target->GetTypeId() == TYPEID_UNIT
&& ((Creature*)target)->HasSummonMask(SUMMON_MASK_SUMMON))
{
-
+
if(!((TempSummon*)target)->isPet())
((TempSummon*)target)->UnSummon();
}