Commit graph

2365 commits

Author SHA1 Message Date
X-Savior
3b203196e8 [9115] Fix typo in error output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-07 15:11:56 +03:00
Nihilus
337c2c584b [9114] Limit maxTargets for spell 28542 and 55665
Also add missing comment for target exclusion

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-06 20:12:32 +01:00
NoFantasy
7e1d55c38e [9113] Add helper functions to set/getSummonLocation
This should help the poor homeless that does not have a database defined home at evade (such as "wild summon" without owner).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-05 19:56:22 +01:00
Forusim
9bc219a312 [9112] Limit maxTargets for spell 42005
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-05 02:38:57 +01:00
NoFantasy
effe02fb25 [9111] Implement ConditionType CONDITION_LEVEL for PlayerCondition
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-05 01:59:14 +01:00
NoFantasy
644cdf70d3 [9110] Some cosmetic cleanup in random movement code.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-04 02:43:16 +01:00
NoFantasy
9ad15e8da2 [9109] Removing the option for run chance from generic random movement generator
Npcs with random movement in general do not behave like this, and movement that fits the pattern of a mixed movement run/walk must be made instead if needed.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-04 02:27:24 +01:00
NoFantasy
e34f136314 [9108] Adjust max nextMoveTime to 10000+totalTravelTime for random movement
This is apparently closer to how the world should look like, which is still of course a best guesstimate.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-03 19:11:26 +01:00
DasBlub
ebb063beb9 [9107] Fix most of the gcc warnings
* use UI64FMTD instead of "%u" for uint64 output
* on most *NIX systems, I64FMT is "%016lX" and not "%016llX"
* also fix typo: renamed GridMap::loadHeihgtData to GridMap::loadHeightData

Note: there are still many warnings from the 3rd party libraries g3dlite and ACE. Those warnings won't be fixed with that commit.
Also, a few warnings from MaNGOS are left, they'll be fixed later.

Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
2010-01-03 15:30:22 +01:00
NoFantasy
e568293d2c [9106] Add script effect for spell 47097
Also add areaflag hack to detect correct areaId

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-03 03:37:02 +01:00
NoFantasy
80b9e58106 [9105] Add missing argument in error message, _LoadSkills()
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-02 19:10:33 +01:00
VladimirMangos
e8e5bbddea [9104] Avoid send reset warning to map/difficulty cases without fixed reset time. 2010-01-02 20:49:53 +03:00
VladimirMangos
aa372cbfda [9103] Make gcc happy with muti-byte char casts and use more readable magic strings. 2010-01-02 20:46:22 +03:00
VladimirMangos
7496a6b91b [9102] Use FillRaidOrPartyHealthPriorityTargets for 34861 and ranks. 2010-01-02 19:20:06 +03:00
NoFantasy
1ec90288fb [9101] Correct target mode 48, and rename to something more meaningful
Also adjust target 49/50 angles to be really left/right.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-02 14:50:39 +01:00
wilibald09
b9fd5f4311 [9100] Set MaxTargets limit for spell 31347
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-01 21:41:53 +01:00
NoFantasy
ed0f04bce4 [9099] Implement periodic dummy aura for spell 55592
Also correct second cast, expected for spell 53520

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-01 21:26:57 +01:00
VladimirMangos
c09ee423ba [9098] More correct targets selection for target pairs with TARGET_SELF2
* Many spell effects that have A target mode SELF2 expected applied to enemy
  target selected by targetmode B so we need skip SELF2 target mode.
* remove SEFL2 from explicit positive target modes.
2010-01-01 21:18:43 +03:00
NoFantasy
f9ec746123 [9097] Implement periodic dummy aura for spell 53520
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-01 19:02:06 +01:00
NoFantasy
56407bdb32 [9096] Implement periodic dummy aura for spell 52441
Note speed is not really reduced as expected, this need correction in other parts of code.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-01 18:35:35 +01:00
b482518
65c12d4998 [9095] Allow apply .modify scale to targeted creature (without save scale).
Also add command description to mangos.sql.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-01 18:21:39 +03:00
NoFantasy
15193ab9c3 [9094] Implement periodic dummy aura for spell 46041
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-01 15:16:33 +01:00
NoFantasy
65f4e7d278 [9093] Implement periodic dummy aura for spell 48630 and 59275
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-01 13:10:23 +01:00
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