Stalker_Riddick
d8ffeed476
Core/Quests: Add new field RequiredClasses for quest_template Credits to
...
NoFantasy.
* SkillOrClass is converted to RequiredSkill (and then field can contain skill id only)
* Field ZoneOrSort has no longer a function in quest requirement, and RequiredClasses must be used instead where class limits are expected.
To restrict a quest to one class or more, use bitmask of class in RequiredClasses. RequiredSkill works like before.
Signed-off-by: NoFantasy <nofantasy@nf.no >
Signed-off-by: Stalker_Riddick <nenad_kuza@hotmail.com >
2011-11-25 13:11:53 +00:00
megamage
f116960b2a
Remove a check which always returns true. Correct me if I am wrong.
2011-11-23 13:21:10 -05:00
Shauren
358b33239a
Core: Fixed remaining C6246: Local declaration of 'x' hides declaration of the same name in outer scope. from previous commit
2011-11-23 19:17:33 +01:00
megamage
f091360940
Do not allow base map be accessed from outside if map is instanceable.
2011-11-23 13:14:59 -05:00
megamage
0eb193f2b4
Revert 2f83db28f2. Note that here we only want to check baseMap->canEnter, but not instanceMap->canEnter.
...
Thanks to SignFinder.
2011-11-23 12:55:00 -05:00
megamage
98be413ce0
Clean up very some confusing MapManager functions (create/find map/base map).
2011-11-23 12:45:59 -05:00
Kandera
e814cd8c35
Core/Mechanic: Resurrection (fixed the issue with players ressing in place then being ported to the person who revived them.)
2011-11-18 14:57:30 -05:00
megamage
07cf71fdd4
Some cleanup of add/remove to/from map.
2011-11-11 17:50:26 -05:00
kaelima
b5cb41b4ea
Core/Player: Make chat tag (last byte in SMSG_MESSAGECHAT) a bitmask.
2011-11-07 07:16:31 +01:00
kaelima
526ada47e1
BG/Isle of Conquest:
...
- Fix seaforium bombs.
- Add flag pole for Refinery
- Some cleanup
Also correct a typo in 0083290322
2011-10-29 15:16:13 +01:00
kaelima
0083290322
Core/Player: Fix gaining fishing skill of wielding fishing pole in offhand
...
Closes #3717
2011-10-29 15:07:08 +01:00
Spp
b5e8a192b1
Core/Calendar: Send map raid reset only once
...
Also some minor changes here and there
2011-10-18 14:23:08 +02:00
Spp
e5fb7f093f
Minor cleanups here and there
2011-10-18 11:13:56 +02:00
Spp
ee69fc940e
Core/Items: Split SetSoulboundTradeable in two functions (Set and Clear)
...
Note: this is mostly for clarify action being done: ClearSoulboundTradeable better than SetSoulboundTradeable(..., ..., false)
2011-10-18 10:44:45 +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
3ba22d0d06
Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management.
2011-10-10 17:39:34 -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
0bb86a3e97
Update code related to character name data.
...
Note: need to add/delete data when character is created/deleted.
2011-10-08 16:09:12 -04:00
Machiavelli
82dbe7bc17
Core: Fix some build errors after code style cleanup
2011-10-08 13:20:04 +02:00
megamage
679802ecf4
Merge pull request #3400 from Bootz/master
...
REPO: Code-Style fixes... (Part duece)
2011-10-07 17:56:47 -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
1e44044a8f
Merge pull request #3281 from n4ndo/master
...
Fix Crash in ProcessQueryCallbacks
2011-10-07 15:19:21 -07:00
root
8a0e7537b5
Core/Misc: Small fixes after recent pulls
2011-10-07 20:07:07 +03:00
megamage
42d1562183
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore.git
...
Conflicts:
src/server/game/Entities/Player/Player.cpp
2011-10-07 12:48:20 -04:00
Shocker
7f89678bcd
Merge pull request #3278 from lost-illusion/master
...
CleanUp
2011-10-07 09:28:10 -07: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
Bootz
96d7a1e970
REPO: code-style clean-up
...
* Fixed pGuild->guild
* Fixed pGroup->group
* Fixed pOwner->owner
2011-10-07 10:54:53 -05:00
megamage
7f4be7e93a
Fix a crash caused by items with 0 price.
2011-10-03 08:43:21 -04:00
n4ndo
d1370a5e0a
Fix Crash in ProcessQueryCallbacks
2011-09-30 10:57:02 -05:00
unknown
8acf07dbab
Random minor code cleanup
2011-09-29 22:35:00 +04: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
megamage
2730d51266
Fix possible total price overflow when buying items. Fix #3137 .
...
Thanks to BroodWyrm for finding out the problem.
2011-09-28 16:03:46 -04:00
Spp
71228f90bb
Core/Weather: Move static function to WeatherMgr.
2011-09-28 11:55:25 +02:00
Spp
b93067350c
Core/WeatherMgr: singleton converted to namespace with free functions. Note how RAII saves your life and removes the need in explicit delete :)
2011-09-28 11:38:56 +02:00
LihO
069162b9d4
Core/Entities: Restore group of player after teleport from BG.
2011-09-17 20:20:10 +02:00
QAston
c0b1823524
Core/Entities: Replace Unit::canAttack usage with more accurate Unit::IsValidAttackTarget
2011-09-16 23:49:31 +02:00
QAston
31e755c291
Core/Entities: Add Unit::IsValidAssistTarget and Unit::IsValidAttackTarget functions for proper serverside checks of related entity flags.
2011-09-16 22:17:48 +02:00
Spp
2f83db28f2
Core/Instances: Fix client freeze when trying to enter an instance which have players inside and you have save but not in same group that people inside and your homebind is in the same continent that the instance
2011-09-16 21:52:49 +02:00
Spp
6c943bfb08
Core: Cleanup in MiscHandler::SendAreaTriggerMessage and warning fixes
2011-09-16 10:53:24 +02:00
megamage
bd4cf4b78b
Store pendingInstanceId instead of pointer of instance save, because pointer may become invalid. Fix #2987 .
2011-09-15 22:04:51 +02:00
Spp
af05915b9e
[Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions)
2011-09-15 14:12:57 +02:00
Nay
8af86aced7
Core/Loot: Do not allow a player that has instance bind pending to loot. By Moriquendu.
...
Closes #2415
Regarding this issue, binding everyone on the raid/party on boss kill regardless of being inside or outside the instance needs to be implemented.
2011-09-15 01:53:59 +01:00
Spp
8aadf83e93
Core/Dungeon Finder: Fix entry point not being saved to db.
2011-09-14 11:21:02 +02:00
Spp-
49686075c3
Core/Dungeon Finder: Use areatrigger coords when trying to get out from a lfg dungeon using the portal after player have been disconnected and original coords have not been saved
2011-09-14 10:16:14 +02:00
Spp-
45af1238cf
Conditions/DisableMgr: converted from singleton to namespace with free functions.
2011-09-09 14:27:23 +02:00
Shocker
7a9cb4fdc7
Merge pull request #2931 from Chaplain/cleanup
...
Core/Mechanic: Implement Diminishing Returns for miss\parry\dodge. Original author for parry\dodge case Lynx3d.
2011-09-08 17:28:35 -07:00
Spp-
327fe7c247
Core: Define helper functions to know if an account is Player, Moderator, GM, Admin or Console
2011-09-08 15:11:55 +02:00