Commit graph

3551 commits

Author SHA1 Message Date
if85myh
5a1bf04585 Make code more compatible with C++ standart strict follow compilers.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-26 20:45:25 +03: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
tomrus88
f34c11be7f Some new gm ticket stuff. 2009-12-24 20:18:09 +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
tomrus88
9e3e741d9b Updated opcodes enum. 2009-12-24 16:04:28 +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
tomrus88
d98300b500 Merge remote branch 'origin/master' into 330 2009-12-24 15:52:11 +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
tomrus88
c83b72da90 Merge remote branch 'origin/master' into 330 2009-12-22 05:13:25 +03:00
tomrus88
af9318ffa1 Fixed/updated some enums/packets. 2009-12-22 05:12:40 +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
tomrus88
d69abfcae1 Merge remote branch 'origin/master' into 330 2009-12-21 17:06:32 +03:00
tomrus88
8607a9d618 More enum/struct fixes. 2009-12-21 17:05:54 +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
tomrus88
ad75d9680c Merge remote branch 'origin/master' into 330 2009-12-20 06:12:32 +03:00
tomrus88
370c6bbd4b Fixed some structs. 2009-12-20 06:11:51 +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