Commit graph

1708 commits

Author SHA1 Message Date
sixsixnine
63e7c092f1 [8458] Re-implement SPELL_AURA_MOD_TARGET_ARMOR_PCT in more porper way for weapon dependent cases.
(cherry picked from commit 7efab7fd38c3a753e967648ca8ef1f2cdfbac76c)

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

With some fixes and rewrites.
2009-09-04 02:16:17 +04:00
balrok
57158e9185 [8457] display summoner to summoned at .namego command 2009-09-03 20:18:35 +02:00
VladimirMangos
e59eea4fb5 [8456] Implement area check for SPELL_ATTR_EX6_NOT_IN_RAID_INSTANCE
Base at hunuza reseach.
2009-09-02 23:10:37 +04:00
Triply
664112a738 [8455] Do not disband guild, if guild ranks are not defined for that guild, removed obsolete comment.
Do not allow to delete guild rank, when there are only 5 or less ranks defined.

Signed-off-by: Triply <triply@getmangos.com>
2009-09-02 20:58:05 +02:00
Lutik
ab9b738e54 [8454] Implement aura SPELL_AURA_MOD_TARGET_ARMOR_PCT.
This fix work stance 2457, talent 12284/13709 and ranks, partly talent 61154 and ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-02 18:48:05 +04:00
VladimirMangos
2e09244e57 [8453] Make more informative error output in case empty version tables. 2009-09-02 18:47:37 +04:00
hunuza
e2bfad97db [8452] Add describtion for two attributes flags.
Signed-off-by: hunuza <hunuza@gmail.com>
2009-09-02 12:47:23 +02:00
VladimirMangos
69fbe1e82f [8451] Implement talent 47236 and ranks.
Added changes base at merge of patches suggested by pasdVn and Astellar.
2009-09-02 06:43:00 +04:00
arrai
9c5f85d309 [8450] Prevented using of plaintext passwords in sql queries 2009-09-02 02:03:42 +02:00
VladimirMangos
c8b717ab7d [8449] Deprecate healing/damage item mods and merge internal data in to spell power.
* Report at loading about deprecated ITEM_MOD_SPELL_HEALING_DONE and ITEM_MOD_SPELL_DAMAGE_DONE
  and drop support code.
* Merge healing/damage base spell bonus fields and function to spell power field/function.
2009-09-01 22:45:56 +04:00
ksergik
8497b520ce [8448] Fixed loaded spell target position records in log.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-01 16:34:26 +04:00
VladimirMangos
747a53cb67 [8447] Small code cleanups in guild loading. 2009-09-01 15:56:09 +04:00
Opterman
eec534f1f6 [8446] Update ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING only for real alive cases.
This fix problem with temporary "alive" cases for prist talent for example.

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

* Use final damage for check
* Also fix CMSG_REPOP_REQUEST read warning spam.
2009-09-01 15:55:09 +04:00
arrai
3b1b68595b [8445] Fixed redundant calculation of v and s on every login
The SRP-6 specifications clearly say, that v and s are only to be
calculated on registering a user and changing his password; calculating
them on every login is plain waste.
2009-09-01 02:42:50 +02:00
VladimirMangos
4d0088e7a9 [8444] Prevent spawn gameobjects with invalid displayid by command.
Also fix mangos string for not existed gameobejct entry.
2009-08-31 23:10:42 +04:00
NoFantasy
a9dea03e09 [8443] Implement use of UNIT_FLAG_OOC_NOT_ATTACKABLE for creature.
Creature with this flag will no longer be attackable by other creatures, and if by any reason it enter combat, flag is removed.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-31 16:46:19 +02:00
arrai
f7963d1791 [8442] Fixed displaying return button in mails 2009-08-30 19:46:52 +02:00
VladimirMangos
8a7b77c088 [8441] Implement check DBs versions (required_* fields) at mangosd/realmd loading.
* git_id updated to generate revision_sql.h file with required_* fields strings.
* mangosd/realmd changed to include header and check this strings at startup.
* mangosd/realmd will terminated if related strings not match in DB content.
  In most cases this meaning that not all expected sql updates applied.
  Current required_* field stored in DB output in error to help find what last sql updates applied.

IMPORTNAT NOTE for mangos devs: please update used git_id before adding next commits with sql updates!
2009-08-30 15:02:10 +04:00
VladimirMangos
c9f475dfa0 [8440] Reset cooldown for triggred spell 61848 before it casting.
This is second case simialr hack, maybe possible find more nice way for this...
2009-08-30 00:24:50 +04:00
win
4d413e4a87 [8439] Fixed counting loaded extra spell bonuses.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-29 23:37:02 +04:00
Fog
016dc29e5d [8438] Correctly update achievement at bank bag slot buy instead next login.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-29 23:31:56 +04:00
VladimirMangos
a1d29f50a0 [8437] Remove redundent player typeid check. 2009-08-29 22:40:05 +04:00
VladimirMangos
a86abcf977 [8436] Return CMSG_SET_ACTIVE_VOICE_CHANNEL to STATUS_AUTHED.
It sent not only just after logout but also just before login packet.
2009-08-29 21:29:55 +04:00
VladimirMangos
a33ba233c7 [8435] More work in repally passives at spelmod apply/remove.
* Fixed infinity recursion at reapply spell mod aura by self triggering.
* Reapply pet/totems passives.
2009-08-29 21:07:28 +04:00
tomrus88
d3fec0355c [8434] Fxied typo in account data loading.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-29 16:43:03 +04:00
VladimirMangos
5cf72882ad [8433] Implement proper store and use character specific account data.
* Base at TOM_RUS reseach save/load character specific account data in new table `character_account_data`
* Move its in sql update from `account_data` to new table.
* For client packets that can be send in loggined state or just after logout but assocualted
  with recently logout character add new login status STATUS_LOGGEDIN_OR_RECENTLY_LOGGOUT
* Store low guid for loggedin player or recently logout into WorldSession.
2009-08-29 11:26:57 +04:00
derex
9d64305a90 [8432] Ship pkg.m4 with mangos. 2009-08-28 14:17:44 +03:00
VladimirMangos
e79a92cd3b [8431] Avoid unlearn class skills at unlearn spell learned at skill learn. 2009-08-28 11:39:40 +04:00
VladimirMangos
4cbaa5b186 [8430] Reapply persistent passive spells at related spellmods apply/remove.
This is solve problems with talents/glyphs/etc that affect of some talent/passive ability bonus in case:
affected talent/ability spell aura already applied before spellmod apply and not affecte as must until relearn/reload.
Example: talent 14983 and later applied glyph 42971.

Also drop dead code for removed in 3.x talent 12303.
2009-08-28 06:55:43 +04:00
VladimirMangos
16b617c3c3 [8429] Not allow stacking SPELL_AURA_PERIODIC_ENERGIZE from diff casters. 2009-08-27 16:10:43 +04:00
VladimirMangos
a3207da3d9 [8428] Implement proper amount absorbed damage for spell 62600.
Other change jus move code under "if(apply) else"
2009-08-27 15:00:33 +04:00
balrok
beae3fe00f [8427] remove afk-flag at bg-join
Signed-off-by: balrok <der-coole-carl@gmx.net>
2009-08-27 12:24:05 +02:00
VladimirMangos
5d50bb16b8 [8426] Use upper/lower iterator pairs as result instead 2 function calls. 2009-08-27 10:56:20 +04:00
VladimirMangos
fdb2842f60 [8425] Implement SPELL_EFFECT_LEAP_BACK and spell 781
* Move CMSG_MOVE_KNOCK_BACK_ACK (player case) to Unit::KnockBackFrom
* Implement creature case, most at hack way currently :(
  Need information about expected server packet, and possible some disorientation movegen apply at short time.
* In adition of spell 781 implement related creature versions.

* Fixed warnings spawn at reading CMSG_MOVE_KNOCK_BACK_ACK, CMSG_MOVE_HOVER_ACK, CMSG_MOVE_WATER_WALK_ACK.
2009-08-27 05:27:45 +04:00
arrai
43a4d1505e [8424] Added support for strict chatmessage validation 2009-08-27 01:08:21 +02:00
VladimirMangos
3c22e14e53 [8423] Fixed typo in mangos.sql. 2009-08-26 08:48:34 +04:00
VladimirMangos
45dd7140b5 [8422] Implement far sight like spells work for long distance.
* Added basic infrastructure for visibility update in case difference player and current view point.
  Just for note: seletect additional arg way beacuse repeatable search object will slow but store pointer will not safe,
  so use middle case: get view point pointer early as possible at visibility updates.
* Implement dynamic object and creature activisation while it's target of far sight spell effect
* Use this for SPELL_AURA_BIND_SIGHT, SPELL_AURA_FAR_SIGHT and SPELL_EFFECT_ADD_FARSIGHT.
* Note2: some spyglass like spells let look _around_ at long distance, this hard implement in current grid loading system
  Without additional changes and not implemented (you will see empty area without creatures in likes case)

* Also fixed warning spam at CMSG_MOVE_SET_CAN_FLY_ACK receive by use proper packet sructure reading.
2009-08-26 08:30:40 +04:00
VladimirMangos
db1c9924a9 [8421] Propertly skip unused data in CMSG_LOOT_RELEASE for avoid warning spam. 2009-08-26 03:46:14 +04:00
VladimirMangos
8231eed7bf [8420] Update and continue fill mangos_spell_check.sql. Small related code cleanups. 2009-08-26 02:33:03 +04:00
VladimirMangos
344c03fc03 [8419] Allow updating pet stats at loading more early (before InitStatsForLevel). 2009-08-25 15:34:23 +04:00
Astellar
0c78bfba33 [8418] Implement work talent 47193.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-25 15:32:22 +04:00
OPenaz
c2f8a0ff7d [8417] Allow work some guardian summon spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-25 13:58:13 +04:00
VladimirMangos
208c84556e [8416] Fixed problem with double cast form passives at loading.
* Drop learning form passives at form psell learning, and cast it explictly from code in all cases.
* Drop cast form passives at learning.
* Note: talents that have dependent form time passives still work in original way: learned and casted at learn if need.
* Drop hack for spell 24907 casting at form apply: it casted fines as result normal triggered effect in related form spell.

Original patch provided by nos4r2zod.
2009-08-25 08:45:49 +04:00
VladimirMangos
bee8a0ddce [8415] Implement --enable-builtin-ace option for explicit select builtin/system ACE.
* --enable-builtin-ace (default) set use builting in mangos sources ACE version build and use
* --disable-builtin-ace set use installed in system ACE version (if any) or
  error if no system version installed. This let easy use system version of ACE
  if it prefered by some reasons (for example 5.5.2 ACE package at 6.x FreeBSD)
* This also fix proper detection Stack_Trace.h existance in both cases.

More proper header existance check base at patch suggested by Plaes.
Thanks to Splinter for testing.
2009-08-24 14:02:43 +04:00
VladimirMangos
9f01551210 [8414] Re-implement [8406] in more clear and working way.
* Rename IsSingleFromSpellSpecificPerCaster to IsSingleFromSpellSpecificPerTargetPerCaster for clear meaning.
* Rename IsSingleFromSpellSpecificRanksPerTarget to IsSingleFromSpellSpecificSpellRanksPerTarget for clear meaning.
* Add new IsSingleFromSpellSpecificPerTarget for case single spell specific aura allowed to be at target from any caster and use it.
  Move some spell psecific checks (mostly sellf casted) from IsSingleFromSpellSpecificPerCaster to new function.
2009-08-24 06:44:15 +04:00
VladimirMangos
b91da7846e [8413] Fixed lost 0 in comment and swap enum elemys for better fit to 0.12 cases. 2009-08-24 05:09:21 +04:00
VladimirMangos
261ad1c5df [8412] Update some new and old client supported shift-links to proper format.
* List all client and server side supported shift-link types updated in Chat.cpp
* Now Henchant anf Hglyph links can be used in commands as spell links.
* Hitem and Hquest links changed to client supported form.
2009-08-24 02:44:19 +04:00
nos4r2zod
89a84127eb [8411] Fixed typos in recent spell stacking related comits.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-23 21:42:15 +04:00
Triply
8aef9ce5e9 [8410] Fixed guild bank loading broken by previous commit.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 18:52:52 +02:00
Triply
efa24ced49 [8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 18:13:09 +02:00