Shocker
c2a2a4f713
Merge pull request #3872 from Bootz/master
...
Codestyle clean-up
2011-11-09 02:31:18 -08:00
kaelima
8ba790ef35
Core/Creature: Prevent Spirit Guides (bg spirit healers) to be seen by alive players.
2011-11-07 18:18:59 +01:00
Bootz
d1334624da
Core: Codestyle clean-up
...
"pl"->"player"
Note: codestyle methods needs maintained, Player* player.
still to do properly clean-up chat.cpp.
2011-11-07 11:18:00 -06:00
kaelima
be0b2fcf97
Core/Grid:
...
- Simplified CellArea calculation (Original author: SilverIce)
- Removed unused code in Cell class (Original author: SilverIce)
- Improve some Visit functions.
2011-10-19 17:40:44 +01:00
megamage
c29ff41001
Rename some classes in grid system.
...
Note: The naming of classes is still confusing. "cell" usually refers to class "Grid", and "grid" usually refers to class "NGrid". But it requires a lot of changes to clean this up.
2011-10-18 10:53:34 -04:00
Spp
bc023c6dfb
Core: Fix some warnings
2011-10-18 12:39:01 +02:00
Fredi Machado
97142102e0
Core/Misc: Added 'f' after float values
2011-10-17 07:38:27 -03:00
megamage
c8251bc619
Remove some "_" from private methods as required by TC standards. Thanks to Shauren for pointing out.
2011-10-13 17:01:55 -04:00
megamage
bcc55489f8
More cleanup of CanSeeOrDetect
2011-10-13 14:02:07 -04:00
megamage
5912e2444d
Some cleanup of CanSeeOrDetect code.
2011-10-13 13:26:27 -04:00
megamage
edc46d5606
Fix a crash caused by my previous commit.
2011-10-11 08:47:36 -04:00
megamage
3569121d80
Remove/Add creature from/to map when it changes map.
...
Note: creatures was never supposed to change map, but now the core allows them to move with transports...
2011-10-10 17:59:52 -04:00
megamage
d156e066cf
Rename "SetPosition" to "UpdatePosition".
...
Replace CreatureRelocation in scripts with new Creature::SetPosition.
2011-10-10 17:08:01 -04:00
megamage
76c9c30c2b
Merge pull request #3399 from megamage/master
...
Fix the relocation of creatures across cells. Try to fix #3054 .
2011-10-10 13:12:15 -07:00
Bootz
5b4c7783c2
REPO: Code-style clean-ups
...
* Fixed pMap->map
* Fixed pInstance->instance
* Fixed pInsta->instance
* Fixed pQuest->quest
* Fixed pWho->who
* Fixed pTarget->target
* Fixed pGo->go
~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
2011-10-07 19:45:43 -05:00
megamage
eb8cbae0d5
Fix the relocation of creatures across cells. Try to fix #3054 .
2011-10-07 17:36:23 -04:00
Bootz
81c0a3a847
REPO: code-style clean-up
...
* Fixed pPlayer->player
* Fixed pCreature->creature
~DevNote: codestyle for Player should be (*player), not *plr or *p...
same goes for Creatures (*creature)... more cleaning needed.
We've way too many codestyles happening here.
2011-10-07 11:08:09 -05:00
Nay
8373e6c32e
Core/Creature: Do not attack non-combat pets.
...
Fixes an issue where non-combat pets were aggroing other creatures
2011-10-01 16:57:10 +01:00
Spp
b16d2245bb
Cosmetic: Multiple cosmetic changes
...
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp
cc06c41887
Core: Move FormationMgr to namespace
...
Also...
- Warning fixes
- Make Singleton constructors private
2011-09-28 11:11:38 +02:00
click
872c2d4d63
Core/Build: Fix non-PCH builds
2011-09-18 16:30:18 +02:00
QAston
c0b1823524
Core/Entities: Replace Unit::canAttack usage with more accurate Unit::IsValidAttackTarget
2011-09-16 23:49:31 +02:00
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
QAston
fc5e924138
Core/Spells: Implement recently discovered target check attributes and move most of target checks to SpellInfo::CheckTarget function.
2011-08-19 14:54:15 +02:00
Spp-
e47b96af3e
Core: Append single character to stream as character, not as a string
2011-07-29 14:18:28 +02:00
QAston
b0fe236265
Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
...
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
Shauren
1e3c23a4e8
Core/Spells: Set UNIT_FIELD_TARGET to current spell cast target for proper facing the target
2011-07-15 12:33:03 +02:00
QAston
53cc218983
Core/Spells: Allow periodic trigger auras to work on dead creatures. Patch by Josh (major stuff) and me (minor changes).
2011-07-12 00:19:50 +02:00
Lopin
a233e7b9d8
Core/Misc: Add new function for selection nearest player in given distance
2011-07-11 16:17:21 +02:00
click
354e5e2bbc
Core: Prohibit aggro on righclicking if not in range
2011-07-03 00:18:33 +02:00
kaelima
9a67aaa8b8
DB/Creature:
...
- Nuke the hacky column DeathState.
- Removed some hacks from Kologarn script, including some cleanup.
- Removed set deathstate command.
BIG thanks to Malcrom for replacing all creatures that had deathstate with proper dynamicflags/auras.
2011-06-27 20:22:53 +02:00
click
b138bc31ca
Scripts/EmeraldDragons: Clean up a bit on the scripts:
...
- Remove script for Shade of Taerar, replaced with SAI equivalent (Malcrom)
- Remove script for Demented Druids, replaced with SAI equivalent (Malcrom)
- Add supportscript for Mark of Nature (Kaelima)
- Some other minor changes here and there
2011-06-12 17:13:28 +02:00
kaelima
b9e8694540
Core: Continued cleanup
...
If and for whitespaces.
2011-06-12 02:30:32 +02:00
click
f16df538ee
Core: More codestyle cleanups
2011-06-12 01:47:45 +02:00
Shauren
a28da3582e
Core/Objects: Fixed linked respawn cases when linking to itself in order to prevent respawning
2011-05-16 15:36:02 +02:00
Shauren
551889c42f
Core: More warning fixes
2011-05-07 20:09:45 +02:00
leak
dfacd287a4
Core/ObjectMgr: Refactor group related functions into dedicated class
2011-05-05 10:25:17 +02:00
leak
1003f30448
Add spaces after commas
2011-04-29 20:47:02 +02:00
leak
c51c817a45
Core/ObjectMgr: Refactor sCreatureStorage
2011-04-28 22:57:08 +02:00
leak
3ab83417f5
Core/ObjectMgr: Refactor sCreatureInfoAddonStorage
2011-04-28 22:50:06 +02:00
leak
c8413a7f27
Core/ObjectMgr: Refactor sCreatureDataAddonStorage
2011-04-28 22:46:40 +02:00
leak
a82654debd
Core/ObjectMgr: Refactor sItemStorage
2011-04-28 22:42:33 +02:00
leak
03365e9a57
Core/ObjectMgr: Refactor sEquipmentStorage
2011-04-28 22:34:40 +02:00
leak
85a1e9e7ab
Core/ObjectMgr: Refactor sCreatureModelStorage
2011-04-28 22:11:45 +02:00
Shauren
d73ffc9e81
Core/Vehicles:
...
* Added generic solution for vehicle accessories not relying on AI calls
* Only accessories marked as minion will be respawned when the vehicle enters evade mode
* Notify the summoner's AI when vehicle accessory fails to install and despawns
2011-04-22 21:59:37 +02:00
pek2011
337b75cafc
Core/Cleanup: Drop some unused code and update some unknown player flags (from Mangos).
...
Closes #1167
2011-04-07 15:10:10 +03:00
Shauren
2f79b0f266
Core: Removed all double (and more) empty lines
2011-03-21 10:52:14 +01:00
Shauren
e5347a3bda
Core: Fixed warnings:
...
C4100: 'variable' : unreferenced formal parameter
C4701: potentially uninitialized local variable
C4389: '!=' : signed/unsigned mismatch
C4245: 'argument' : conversion from 'X' to 'Y', signed/unsigned mismatch
2011-03-08 16:42:00 +01:00
Shauren
4bed6b7831
Core/Creatures: Make use of delay parameter for TempSummon case in Creature::DespawnOrUnsummon
2011-03-07 21:25:34 +01:00
Shauren
4b4d3e7450
Core/Creatures: Implemented UNIT_FLAG_PASSIVE
2011-03-06 12:22:04 +01:00