Commit graph

2365 commits

Author SHA1 Message Date
NoFantasy
3c2327e6e0 [9065] Implement motionmaster function UpdateFinalDistanceToTarget()
To update a creatures distance to it's target without creating a new movement generator. Note it can only be used where creature is using TargetedMovementGenerator.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-25 18:06:59 +01:00
VladimirMangos
441aa50bad [9064] More internal cooldowns for some intem spells. 2009-12-25 18:59:56 +03:00
PSZ
722634770b [9063] Add one more expected spell cast at spell 28169 debuf expire.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 16:57:59 +03:00
NoFantasy
f4c6cf7337 [9062] Implement two helper-functions for casting spell in creatureAI.
Function will return a cast result, with fail reasons if spell can not be casted (can be used to take alternative action). Please note this is not a full list of cast fail errors/reasons, but will cover a few basic errors that may occur.
The virtual function CanCastSpell() may be adjusted for custom needs from script library if not the default is sufficient.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-25 13:05:38 +01:00
darkstalker
67dd48e2d4 [9061] Fixed SPELL_AURA_MOD_CRIT_DAMAGE_BONU (163) use in calculations.
* Renamed from SPELL_AURA_MOD_CRIT_DAMAGE_BONUS_MELEE
* Also apply to non-melee damage also

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 06:11:10 +03:00
laise
ce30ed1852 [9060] Fixed leave combat by timer.
This also fix some problems with stealth detection.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 05:41:55 +03:00
yavi
9ab5276eb9 [9059] Implement expire effect for spell 28169
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 05:08:43 +03:00
VladimirMangos
0fec3c06d8 [9058] Implement spell 7057 2009-12-25 00:26:44 +03:00
nos4r2zod
d990644151 [9057] Implement some damage related spell attributes support.
* SPELL_ATTR_EX4_STACK_DOT_MODIFIER
* SPELL_ATTR_EX6_NO_DMG_PERCENT_MODS

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-24 18:31:03 +03:00
VladimirMangos
a1bba62e88 [9056] Not exclude real caster from TARGET_ALL_ENEMY_IN_AREA_INSTANT.
Not found cases when this need for affected case (without 27/28 effects)
2009-12-24 15:54:14 +03:00
tehmarto
bfca1ca7fa [9055] Fixed charge amount for spell 64823 to expected 1
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-24 04:49:37 +03:00
Astellar
ce26fcf4aa [9054] Implement expire/dispell damage for spell 44457 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-24 03:25:42 +03:00
laise
2a189d7275 [9053] Fxied some mage DoTs stacking.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-24 02:37:53 +03:00
VladimirMangos
391133cb8f [9052] Fixed possible crash at fake items swap packet. 2009-12-24 01:24:30 +03:00
Insider
0e42b18946 [9051] Fixed typo in [8959]
(backported from commit eedbc3f)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-23 21:19:59 +03:00
VladimirMangos
fb21f4c16e [9050] Add MAX_EXPANSION define for config option Expansion check.
This will prevent case when expansion set to high for supported client
in config and account have also too high expansion setting.
Client in like case receive too high expnasion and reject connection
because it think that have not installed expansion for connection account.

This possible for example for account case when single realmd used for
diff client versions and account have high expansion setting for most
recent client support. And in same time mamngos.conf for specific realm
have wrong Expansion value.
2009-12-23 20:24:13 +03:00
VladimirMangos
5e081196b1 [9049] Additional fixes for talent 17056 and ranks.
Thanks to Sarjuuk for clarify existed problems and help in prepare fix.
2009-12-23 19:48:14 +03:00
VladimirMangos
503496e09c [9048] Add src\bindings\universal\Scripts\sc_defines.cpp to script.vcproj 2009-12-23 16:59:55 +03:00
VladimirMangos
d36281f315 [9047] Support triggered spells that have cast time.
Like spell will placed in unit event list for cast at next tick or later dependent from cast timer.
Before all triggered spell ignore cast time and casted explcitly from related cast caller code.
This must fix some spell work like 17086 in damage apply time part and also in preventing possible
stack overflow because this spell triggering by chain 19 spell casts from each other.

This also exclude from triggered arg of CastSpell function meaning that this cast will instant alsways.
So triggred arg now meaning only that this seppl casted nit from player side and then not send
in some cases cast info to client if not vosula effect expected.
2009-12-23 12:38:06 +03:00
pasdVn
f1850c9ebe [9046] Correctly send channeling start/update packets to clients
(cherry-picked from commit 1bc38f7)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-22 21:03:28 +03:00
MrLama
d432c34307 [9045] Implement talent 48539 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also some typos in mangos.sql field order fixes (sql updates in past ahe been correct)
2009-12-22 00:16:31 +03:00
VladimirMangos
68c8757127 [9044] Exclude TARGET_SELF from IsExplicitPositiveTarget.
This must fix triggred spells casting in case when it self casted but cast code send diff target.
2009-12-21 16:55:46 +03:00
VladimirMangos
a01f2e1f72 [9043] Fxied build at *nix systems. 2009-12-21 02:02:27 +03:00
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