Commit graph

5506 commits

Author SHA1 Message Date
x3n
d35be7f4c1 [11023] Implement support for threat multiplier and AP based threat bonus for spells.
* Higher ranks are now automatically filled when not listed in spell_threat
* Added some loading checks to detect inconsistent data

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-01-17 12:55:24 +01:00
Lynx3d
77d8b41cc4 [11022] Create template for loading spell ranks from DB to allow better code re-use. 2011-01-17 12:36:25 +01:00
michalpolko
1b1a7ebd24 [11021] Damage buff apply for spell 57934
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-17 12:58:36 +03:00
breakwater
d072a42807 [11020] Proper percent damage for effect 3 of spell 50341.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-17 11:08:19 +03:00
DasBlub
342b122a63 [11019] Improve the security for the MySQL DB
There has been a security risk as the 'mangos' user had full access to all databases on the MySQL server.
The new create_mysql.sql file now gives more restrictive rights so that the 'mangos' user can only do what he really needs to do.

If you have already set up the DB and want to make sure, that it's more secure, open up the MySQL doc about the 'REVOKE' command and revoke all rights for that user from any other db. Alternatively you can revoke ALL rights from the 'mangos' user and then re-grant him as done in the file.
2011-01-16 20:34:39 +01:00
VladimirMangos
f1957ab478 [11018] Fixed security leveld for 'send mass mail' in DB. 2011-01-16 22:26:02 +03:00
XTZGZoReX
2d87d68b4e [10626] CONFIG_BOOL_SAVE_RESPAWN_TIME_IMMEDIATLY -> CONFIG_BOOL_SAVE_RESPAWN_TIME_IMMEDIATELY 2011-01-16 18:47:52 +01:00
VladimirMangos
784c0ca781 [11017] Finaly restore non-crashing non-in-world logout.
For example at close client with far teleport loading screen.
2011-01-16 20:38:48 +03:00
VladimirMangos
805d62bef1 [11016] Fixed crash at logout not in world guld member. 2011-01-16 18:40:02 +03:00
VladimirMangos
0c19c2c6a2 [11015] Prevent crash at player far teleport landing to nonexisten battleground instance.
Teleport back in like case or to homebind in bad case.
2011-01-16 00:31:41 +03:00
zergtmn
3de0f99f59 [11014] Fix some typos in MassMailMgr 2011-01-16 01:12:07 +05:00
pasdVn
f9a6513d38 [11013] Implemented spell 34026 and bonus to it from talent 35029 and ranks
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-15 21:17:13 +03:00
VladimirMangos
1e8ca772b3 [11012] Remove battlemaster mails support as unused now. 2011-01-15 19:18:44 +03:00
Lynx3d
3d551a68b5 [11011] Remove some more code from threatAssist()
* calcThreat() is also called in addThreat() when given proper parameters,
  and division by 'size' is commutative
* threat redirection is also handled in addThreat() again
2011-01-15 15:50:18 +01:00
Ambal
7d4c96f244 [11010] Remove duplicated code to start transaction in Mail class.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-15 14:40:45 +02:00
Lightguard
93da661f8b [11009] Add missing opcodes to OpcodeHandler 2011-01-14 21:57:01 +01:00
Lynx3d
279c99bd0f [11008] Fix wrong threat assignment in threatAssist().
It may have been faster, but unfortunately made the aggressor threatened by his enemies instead of the opposite...
In case Player heals himself, this is of course pointless as he chooses target himself, hence it had no real effect at all.
2011-01-14 20:39:18 +01:00
VladimirMangos
f7d49a4254 [11007] Implement use personal loot slot types that fix problems with some loot cases.
For example it fix looting 43016.

Also use enum and clarify uses diff loot slot types.
2011-01-14 19:03:54 +03:00
VladimirMangos
5e74d1e425 [11006] Move ShapeshiftForm to SharedDefines.h and fix build for *nix. 2011-01-14 11:48:43 +03:00
VladimirMangos
7864d7f07f [11005] Finish structure of inspected item fields.
Also restore items inspect show in case disabled talent inspection.
2011-01-14 11:42:14 +03:00
VladimirMangos
c8fe77f8ca [11005] Remove unused function from channel code. Some other cleanups.t_id 2011-01-14 08:53:32 +03:00
VladimirMangos
8d62e9dbf7 [11004] Fixed not apply spell for current form at learning.
Some non-passive spells autocasted at shapeshift but without fix
in case already active form at like spell learning it not has been casted
in different from passive similar spells.

This is fix apply dodge chance part of spell 17002 for described case.
2011-01-14 03:59:22 +03:00
NoFantasy
75846d28eb [11003] Add comment to unknown byte value in spell go packet.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-13 11:40:59 +01:00
VladimirMangos
6a8af38e68 [11002] Implement 8 pieces effect of itemset 204. 2011-01-13 10:50:33 +03:00
Derex
f1283b489d [11001] Fixed crashes in ACE network code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Thanks to kero99 for pointing to patch and testing.
2011-01-13 04:24:24 +03:00
NoFantasy
d38539f12a [11000] Minor code style changes for readability in aggro related unit functions
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-11 15:03:00 +01:00
Daggy
e9fc7d05b2 [10999] Add teleport destination for TARGET_EFFECT_SELECT cases
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-11 09:29:04 +01:00
VladimirMangos
b7f4a41fcd [10998] Re-write work proc of stackable spells with charges in more simple way
Some spells have procCharges > 0 and in same time maxStack > 1. It's support has been implemented more year ago
but current way work with single aura from stack remove at proc always made some spells work wrongly
(7 spells (with ranks) in 3.3.5a). In fact only 3 spell (with ranks) need this "one from stack" way and
all form its have similarity: Its apply max stack from start and decrease stacks at proc hit.
Another prove for correctness this way: in 2.x exist single spell with charges and maxstack that expect full aura stack remove.

So implemented opposition way: normal aura proc remove always full aura holder stack.
Special 3 cases have overwrite code for work with stack in correct for its way.

Fixed work:

* items 31857 and 50259
* recipe 46027 effects.
* talent 63730 and ranks

Affected by code changes talents 51528 and 55166 tested and work.

Spell 34026 use similar decrease stack at hit but req. independent patch for full implemention, so not work.
2011-01-11 05:15:51 +03:00
VladimirMangos
d6eef703ce [10997] Fixed my wrong addition for wrong spell 58914 (instead 34026). 2011-01-11 05:11:02 +03:00
VladimirMangos
15943c95d8 [10996] Move set max original aura stack cases to aura holder creating
This will avoid show unexpected "gain Name Name(2) Name(N)" spam in log.

Maybe exist more nice way seelct like spells instead raw listing but i not see currently it.
2011-01-10 15:34:31 +03:00
VladimirMangos
2d2b17dd3a [10995] Not do redundent unlock aura holder at each proccessed spell proc handler.
Aura holder unlock called later by code.
This prevent unexpected real aura delete at early effect aura proccessing
and crash at next effect aura proccessing.
2011-01-10 13:50:49 +03:00
VladimirMangos
648849e25b [10994] Fixed typo in name SkillFail.Loot.Fishing at default value set. 2011-01-10 02:47:04 +03:00
Iriskin
52c4accb99 [10993] Fixed typo in recently add DB field comment.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-10 01:05:32 +03:00
NoFantasy
7ab08fd6a4 [10992] Add CastSpell part of dummy effect for spell 23138
Also limit max targets.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-09 19:41:29 +01:00
NoFantasy
f8680c119d [10991] Add dummy effect of spell 19411 and 20474
Hack alert! Create GO manually instead of using spell. See code comments for details.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-09 18:47:59 +01:00
Lynx3d
f11ec97957 [10990] Fix wrong threat assignment in Spell::EffectHealPct when m_caster and m_originalCaster differ. 2011-01-09 15:43:50 +01:00
VladimirMangos
39e7b19267 [10989] Implement post-3.1 and later fishing changes.
* Fishing now prowide junk loot at fail skill check.
  This can be disabled for old way work using SkillFail.Loot.Fishing option.
  Junk loot expected to be listed in fishing_loot_template entry 0.

* Fishing can gain skill grow at skill fail check case.
  Controlled by SkillFail.Gain.Fishing option.

* Fishing from fishing pool gameobject can't be fail.
  Controlled by SkillFail.Possible.FishingPool
2011-01-09 14:37:56 +03:00
VladimirMangos
d2b3977fee [10988] Propertly note for not loaded script library version.
* Better support localization in case built-in version notes.
* Move script library version functions to ScriptMgr
2011-01-09 06:06:52 +03:00
VladimirMangos
6e241689e7 [10987] Prevent deleting reflect source aura ebfore reflected spell cast. 2011-01-09 00:53:05 +03:00
VladimirMangos
287229bfdb [10986] Fixed linking porblem for scripting library.
Visual Studio have known porblems with make public (in DLL access meaning)
for private fields accessed by public inline functions.
2011-01-08 12:42:18 +03:00
VladimirMangos
324c8c4cd2 [10985] More safe for use PET_FOLLOW_ANGLE define. 2011-01-08 05:48:00 +03:00
VladimirMangos
106440ad89 [10984] Alow implicit copy constrictor call for fix build at some compilers. 2011-01-08 03:59:34 +03:00
VladimirMangos
ea930108da [10983] Config option for disable progress bar show at server startup.
Make happy nervouse ppl by some secs startup speedup.
2011-01-08 03:15:03 +03:00
Ambal
b89e531fee [10982] Optimize memory usage of Field class used in DB code. Should also slightly speedup server startup time.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-07 18:54:06 +02:00
x3n
f56ae22ed9 [10981] Removed 600 percent threat mod for talent 50385
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-07 08:25:10 +03:00
Pat S
7ca769f031 [10980] Lost config fiel part of prev. commit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-07 07:57:23 +03:00
Pat S
46fdc3af97 [10979] Add extra ghost speed rate for BGs: Death.Ghost.RunSpeed.Battleground
Also recently added option renamed to Death.Ghost.RunSpeed.World

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-07 07:46:41 +03:00
VladimirMangos
a7f784f676 [10978] Use PExecute instead PQuery for geme event status updates
This also must fix unexpected duplucate record errrors at server startup
2011-01-07 06:48:56 +03:00
Pat S
af50b352b2 [10977] Add ghost speed rate in config: Death.Ghost.RunSpeed.
Also clarify context for remove ghost auras place after set alive state.
This let get more expected results at remove ghost speed aura.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-07 06:45:25 +03:00
SkirnirMaNGOS
7aab4eecdf [10976] Fixed trailing whitespace.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-07 05:16:28 +03:00