Commit graph

2292 commits

Author SHA1 Message Date
goldberg002
817ffb7a8d [9042] Remove double apply bonuses for spell 635/31935 and ranks
One time in code and second time by DB data.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-21 01:51:53 +03:00
NoFantasy
050bff1a1d [9041] Move enum CastFlags from eventAI to creatureAI for access to all AI
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-20 23:48:51 +01:00
laise
70c7d955f9 [9040] Update code for talent 17056 and ranks correct work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-21 01:28:49 +03:00
VladimirMangos
7b0a059d2f [9039] Allow have more one hunter aspect from different casters. 2009-12-21 00:02:54 +03:00
VladimirMangos
6adfd75040 [9038] Update highest threat enemy at move to offline list.
It will restored if still highest at move back and fix
at least visual bug with GM-mode on still show for GM
as highest threat enemy for creature.
2009-12-20 22:40:53 +03:00
VladimirMangos
15de428242 [9037] Cleanups in spellmode apply code.
* Add constructores for spellmode creating instead explcit fields init
* Use uint32 for family mask 2 instead unneded uint64

Also drop one from manual applies for uno-existed now spell.
2009-12-20 19:47:14 +03:00
yad02
9d0e943488 [9036] Typo in function name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-20 13:07:20 +03:00
VladimirMangos
9e18fc5745 [9035] Attempt make more fast and less hackish spell target checks
* Enable server side recheck clear negative to friend or positive to enemy casts that already checks at client side
* Use more fast way check in similar cases for non-players, and fall back to old way in unclear (for while at least)

Please report if some spell stop propertly casted at friends/enemies.
2009-12-20 03:29:36 +03:00
Splinter
27e7190301 [9034] Add internal cooldown for item 47215 effect.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-20 01:43:03 +03:00
VladimirMangos
49bfec94e4 [9033] Fixed percent mana regneration from spell 53228 and ranks buff. 2009-12-20 01:14:18 +03:00
Splinter
54caf1129d [9032] Correctky cast rank 2 mana regent triggred effect for 53228 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-20 00:55:53 +03:00
VladimirMangos
239dd33e22 [9031] Fixed: remove talent 44404 buff at spell mod apply triggering. 2009-12-20 00:27:04 +03:00
Maxxie
f71c4bf3ae [9030] Fixed: remove spell 30451 and ranks buffs stack at another arcane spells.
(cherry-picked from commit 8dbbc7b)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-19 23:47:07 +03:00
j4r0d
d560c657d8 [9029] Fixed spell 0451 and ranks buff apply.
In fact drop now wrong redundent code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-19 22:32:58 +03:00
VladimirMangos
da3f340e14 [9028] Better error output for ACHIEVEMENT_CRITERIA_REQUIRE_INSTANCE_SCRIPT. 2009-12-19 21:59:34 +03:00
VladimirMangos
ff229af00a [9027] Restore spell bonus apply to dot damage for 17962 damage calculation.
In fact reverting wrong part of my one from prev. commits.
2009-12-19 21:45:18 +03:00
VladimirMangos
9b6900b9a3 [9026] Implement ACHIEVEMENT_CRITERIA_REQUIRE_INSTANCE_SCRIPT.
This achievement criteria requirement type let set in table `achievement_criteria_requirement`
that specific criteria id for achievmenet connected with some instance
must be checked by new InstanceData call
  bool CheckAchievementCriteriaMeet(uint32 criteria_id,Player const* source, Unit const* target, uint32 miscvalue1)

It expected to be used for cases: kill boss without raid members death or for some limited time
or without kill before some other boss helpers and etc. Implementation expected base at collection some data/counters update
in instance data at specific event and then make check by query and retunr success for specific criteri or fail requirements.
2009-12-19 18:07:20 +03:00
laise
0c636c6e3e [9025] Implement talent 63373 and ranks.
Idea with AddTriggeredSpell use suggested by darkstalker.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-19 06:29:17 +03:00
fisherman
aeaa5026f5 [9024] Fixed RAP bonus percent for spell 56641 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-19 04:16:51 +03:00
VladimirMangos
29a096a348 [9023] Fixed some hunter sting affects.
* spell 1978 and ranks RAP bonus
* spell 53209 affect from spell 3034 dot.
2009-12-19 02:51:14 +03:00
VladimirMangos
b95e3046c0 [9022] Fixed small typo in creature_template.difficulty_entry_N checks. 2009-12-19 01:30:06 +03:00
laise
a8d4254d33 [9021] Implement item 21213 effect work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-18 22:26:15 +03:00
VladimirMangos
6b78ed534d [9020] Re-implement 1680 (and triggred spell for 46924) in less hack way. 2009-12-18 06:20:35 +03:00
Seizer
cc9072c89f [9019] Add/update some hidden threat values for warrior/druid spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-18 04:13:08 +03:00
Sarjuuk
393ab4a7ca [9018] Implement aditional form specific bonus for 16857.
SQL data prepered by MrLama.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-18 03:03:29 +03:00
NoFantasy
cccb85dbe2 [9017] Fix typo in GO gossipID check for type 10
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-17 22:35:57 +01:00
VladimirMangos
3fbc1c95f9 [9016] Add missing value for recently aded field in `realmd.sql 2009-12-18 00:16:32 +03:00
VladimirMangos
71f8f1b5a1 [9015] Fixed spell 34914 ranks dispel damage and spell 29722 and ranks bonus damage.
In both cases not expected additional spell damage bonus apply.
2009-12-17 22:11:42 +03:00
VladimirMangos
27f37ba4dc [9014] Fixed unexpected error output for "unused" db_script_string.
When it reallt used in `gossip_scripts`.
2009-12-17 16:54:02 +03:00
balrok
0502de55af [9013] shapeshift spells
some shapeshift forms will give the player spells
so we need to tell the server that the player has those new
spells else he can't cast them since the server is thinking the player is
cheating

ps forms with spells:
FORM_GHOUL
FORM_THARONJA_SKELETON
FORM_TEST_OF_STRENGTH
FORM_BLB_PLAYER
FORM_TEST
FORM_ZOMBIE

--
so this mostly won't affect any ingame experience.. but good to have this
feature anyway.. :)

also changed errormessage if player has no reagents for spell..
thx to nofantasy
2009-12-17 14:02:59 +01:00
balrok
7c4acf31e2 [9012] fix crash when achievement is completed and player isn't in world
also don't divide money loot for players who are not inside the
same map..
and player shouldn't be able to reclaim his corpse if it isn't in same map

and some other related cleanups
2009-12-17 14:02:48 +01:00
VladimirMangos
6057be2656 [9011] Drop unused enum. 2009-12-17 15:32:49 +03:00
Laizerox
022524c1bb [9010] Implement realmd support realms for different client versions
* Supported 1.12.1, 1.12.2, 2.4.3, 3.2.2a in same time as relams in same realmlist
* mangosd by self check correct for it client build and reject all incorrect cases
* realmd know from mangosd what builds supported each realm and
  if realm not support it then in relamlist for specific client this relam show as offline.
  Not need any manual settings for this.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-17 03:40:29 +03:00
Arthorius
41b0b88674 [9009] More fixes in pet action bar buttons swap.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-16 23:18:10 +03:00
balrok
16b39c1ebf [9008] modelids for shapeshifts from dbc
this will correct some modelids:
form         old model, new model
FORM_TRAVEL: 632   --> 918      (now a bit smaller)
FORM_GHOUL:  10045 --> 25527    (whisp --> ghoul)
FORM_CREATUREBEAR: 902 --> 2281 (old brown horse -> bear)

implement shapeshift for spell 24347

this commit also
fix the errormessages with: "Race %u not found in DBC: wrong DBC files"
which were triggered from this code
and will fix the modelid for creature 2038
since it's also using a shapeshift aura and only got the horde-modelid

+ some new entries in ShapeshiftForm-enum
+ some research for the shapeshift.dbc
2009-12-16 21:09:42 +01:00
jorooo
4b8664ab5a [9007] Set internal cooldowns for trinkets and some other items/spells.
Including items: 27683, 28418, 30619, 30626, 43134, 38579, 38212, 40767,
                 37559, 40865, 38071, 38072, 43462, 43470, 43573, 43829,
		 28190, 49076, 40682, 28034, 37220, 37390, 37064, 44308,
		 37660, 37264, 39229, 37657, 40258, 40382, 41385, 43838.

Also included data prepared by co-authors: Sephiroth1983, nos4r2zod, Sarjuuk, oc_redfox, Alez.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-16 21:29:48 +03:00
freghar
a13fa7f873 [9006] Trailing whitespace cleaning
Sorry for a (bit) delayed commit.

Signed-off-by: freghar <compmancz@gmail.com>
2009-12-16 15:38:08 +01:00
laise
7ee3d3a22c [9005] Add internal cooldown for item 40373 effect.
Thanks to Splinter for cleanup query.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-16 17:32:56 +03:00
Splinter
ffd713cc55 [9004] Drop dead code case
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-16 17:11:01 +03:00
VladimirMangos
3226d35f03 [9003] Revert "[9000] Reset time in more proper way."
This reverts commit 8e8f7710e8baf29196256c6e0afcce1b7d3f3671.

Main reason: unexpected work in debug with breakpoints.
Also have other reports with strange effects.
2009-12-16 16:38:00 +03:00
VladimirMangos
a204201e81 [9002] Make 8923_01_mangos_gossip.sql more propertly work
if rename target table exist by some reason.
2009-12-16 16:09:58 +03:00
Splinter
11f0086b77 [9001] Add internal cooldown for for item 42987 effect.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-16 15:55:22 +03:00
SilverIce
716aad6aaa [9000] Reset time in more proper way.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-16 14:15:13 +03:00
VladimirMangos
562ad128d3 [8999] Make creature wild summoned by item 49040
This make it usable by other players, not only owner.
Also sort summon types by value in switch.
2009-12-16 13:59:06 +03:00
NoFantasy
03c65f5a75 [8998] Allow pet guid to have gossip options like creature guid.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-16 11:12:09 +01:00
VladimirMangos
e17d3043ea [8997] Implement SUMMON_PROP_TYPE_REPAIR_BOT(12) support
Used only for item 49040 summon. Need DB support for proper work summoned creature.
2009-12-16 01:28:21 +03:00
VladimirMangos
457807eb80 [8996] Implement 2 items effect from itemsets 803/-33
Original patch provided by Splinter.
2009-12-16 00:51:32 +03:00
Splinter
7ce03aaf51 [8995] Overwrite wrong proc flags for glyph 43539 triggering.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-15 23:13:43 +03:00
VladimirMangos
be79375b56 [8994] Re-implement remove auras from channeled target
* Old way have problem with auras that have last tick avent at one from caster/target:
  depndent from auras update order in caster/target pair ti can wrongly not triggered.
* Fxied possible problem with remove same spell non-caster auras at target/caster at spell cast cancel
* Also fix memory lost in old deleted auras cleanup.
2009-12-15 18:50:45 +03:00
Lynx3d
e0d8c8fcd8 [8993] Fixed spell family mask 53817 one more time.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-14 18:42:48 +03:00