Commit graph

3656 commits

Author SHA1 Message Date
VladimirMangos
4b28513b57 [9123] One lost cases in year update 2010-01-08 01:12:58 +03:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
frcoun
147c250a56 [9121] Implement dummy effects for spell 50926,51026,51592 and 51961
Note: Some adjustments in addition to original patch, using delay despawn.
Also provide sql update for proper work of affected spells (if already exist in database).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-07 21:34:43 +01:00
NoFantasy
9c48e32bb7 [9120] Implement option to use delay in ForcedDespawn for creature
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-07 20:19:38 +01:00
GriffonHeart
a2e92cdb4e [9119] Add achievement creteria requirements for ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET*
Most ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET and ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET2
not need any additional requirements (so just ACHIEVEMENT_CRITERIA_REQUIRE_NONE(0) in DB) but some
need map difficualty checks and some ACHIEVEMENT_CRITERIA_REQUIRE_INSTANCE_SCRIPT also.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-07 20:33:08 +03:00
GriffonHeart
0b3cf7883e [9118] Fixed problem with not set AchievementCriteriaRequirementSet::criteria_id
This important for support ACHIEVEMENT_CRITERIA_REQUIRE_INSTANCE_SCRIPT

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-01-07 20:05:58 +03:00
NoFantasy
17c0ea7020 [9117] Add dummy effect at aura removal for spell 32286
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-01-07 16:17:31 +01:00
VladimirMangos
aaa5cba89c [9116] Lost break/return in CONDITION_LEVEL cases. 2010-01-07 16:57:40 +03:00
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
Hiram
253ad70197 Fixed build at branch.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix some lines related to internal quest flags mask.
2010-01-01 17:01:48 +03: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
tomrus88
33cd1a0aca Merge remote branch 'origin/master' into 330 2009-12-30 01:16:15 +03:00
tomrus88
2a80cc694a Fixed some enums. 2009-12-30 01:15:59 +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