Commit graph

2292 commits

Author SHA1 Message Date
awpolt
4b0ceaeb6b [9092] Fixed typo in function name.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-01 14:08:59 +03:00
NetSky
2087aa2876 [9091] Add max targets limit for spell 34861 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also implement glyph 42396 work for referenced spells.
2009-12-31 19:18:38 +03:00
VladimirMangos
e5dfeea31e [9090] Implement tick counting in periodic auras.
This can be used for some tick number dependent aura effects.
Also in some cases impossible claculate tickes count pass,
for example for infinity duration auras.
2009-12-31 17:52:43 +03:00
NetSky
9a6c248dec [9089] Check explicit target correctness by all effect target modes.
All effect target modes start from client provided target data
so all its must be used for checking explicit target modes.
For example exist spells that have as first effect SELF non-explicit target mode.
but in same time negative to explicit target.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also add caching IsHostileTo/IsFriendlyTo for avoid recall this not fast functions.
2009-12-31 15:32:00 +03:00
insider42
375aedd611 [9088] Prevent unsummon permanent pets at arenas.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-30 22:04:03 +03:00
VladimirMangos
305b54d242 [9087] Fixes in pet unsummons
* Not unsummon warlock pets at logout.
* Prevent overwrite current saved pet at save secondary pet (with temporary unsummoned first).
  This possible at arena for example.
* Not fixed: in char list at login pet don't must be show with character if character saved at mount in game.
  Not critical and maybe not need fix as feature ;)
2009-12-30 21:56:20 +03:00
NoFantasy
468295392d [9086] Limit maxTargets for spell 33711 and 38794
Also remove not strict required difficulty check for some spells and add lost comment from [9085]

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-29 20:14:48 +01:00
NoFantasy
4f54e09134 [9085] Implement periodic dummy aura for spell 50824
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-29 19:01:23 +01:00
NoFantasy
fcbd0cdaa5 [9084] Implement periodic dummy aura for spell 50789 and 59860
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-29 17:24:14 +01:00
NoFantasy
663f8df849 [9083] Rename maps naming used in spell targeting code for easier readability
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-29 13:13:33 +01:00
NoFantasy
70c8eb5906 [9082] Correct some spells unMaxTarget (ref [9080]) to depend on map difficulty
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-29 11:06:24 +01:00
VladimirMangos
349b6c0af2 [9081] Fixed DoT damage from 12834 and ranks. 2009-12-29 12:29:19 +03:00
NoFantasy
7bcf8f44aa [9080] Add custom/preset unMaxTargets for a few spells where info is not present
Thanks to kamillys and KAPATEJIb for original code and research!

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-29 02:00:25 +01:00
NoFantasy
46b6723af1 [9079] Less strict check related to TARGET_SCRIPT_COORDINATES
Fixes and enables ~20 more summon related spells. Some minor cleanup in related code

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-29 00:42:24 +01:00
Splinter
15d4388696 [9078] Allow stacking healing buffs from spell 33763 and 48438, and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-29 00:31:40 +03:00
Lightguard
9c98bd92e2 [9077] Fixes for pet work in case mounted owner.
* No unsummon temporary pet at non-fly mounting.
* Implement client side disable pet's action bar for mountted owner time

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

* implement server side action disabled case (action bar modify, aggro reaction and autocast)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-28 16:00:55 +03:00
VladimirMangos
7d0a830bd4 [9076] Another SPELL_EFFECT_PLAYER_PULL problem fix.
If base points porvided then this is _max_ pull distance, not direct distance.
2009-12-27 23:47:47 +03:00
FunkyBit
41df9cd9ab [9075] Fixed direction of move for SPELL_EFFECT_PLAYER_PULL
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-27 22:43:48 +03:00
VladimirMangos
202ffa82ca [9074] Fix typo in 'server shutdown' description. 2009-12-27 22:10:02 +03:00
VladimirMangos
dd198ad1ad [9073] Implement hack way detection for cave area 571. 2009-12-27 21:52:50 +03:00
NoFantasy
ec1e30490b [9072] Implement periodic dummy aura for spells 50792, 59859, 50801 and 59858
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-12-27 15:29:21 +01:00
Insider
81d55d4a41 [9071] Fixed exclusive triggering 2 buff versions for talent 48516 and ranks.
(based on commit acac608)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 22:57:55 +03:00
KAPATEJIb
c31f2c0a1f [9070] Add explcit 6 sec triggering cooldown to 58597.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 22:32:38 +03:00
VladimirMangos
7047d2c42c [9069] Drop outdated code.
Thanks to KAPATEJIb for reporting.
2009-12-25 22:27:23 +03:00
MrLama
ab539a9de6 [9068] Include spell 35395 in trigger list for talent 53380 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also remove wrong masks from talent 53486 and ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-25 22:18:43 +03:00
VladimirMangos
4355772a65 [9067] Restore build at *nix. 2009-12-25 21:38:03 +03:00
VladimirMangos
e583f543a2 [9066] Small cleanups in spell code.
Mostly avoid unclear "lost" break case
2009-12-25 21:05:11 +03:00
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