Commit graph

742 commits

Author SHA1 Message Date
Lynx3d
60b2e2c8ba [11192] Make some more use of 'const' in SpellAuraHolder. 2011-02-21 16:56:00 +01:00
darkstalker
3d4caa275b [11144] Prevents abilities that are 'usable while stunned' being usable while in non-stun effects. The usability while stunned is restricted only to stun auras with mechanic stun
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:59:14 +02:00
VladimirMangos
cf685da47a [11139] Use for Creature/GameObject local per-map guids
* Creature/GameObject guid generators moved to Map
* For avoid wrong not converted cases generic function in ObjectMgr has been replaced by
  specilized guid generation function like sObjectMgr.GeneratePlayerLowGuid().
  This let catch all cases that need update in custom code or scripts.
* Drop many ObjectAcessor.h now dead code. This is also make mangos more thread safe.
* Restore one more time unix build broken in prev. commits.

Note: many cases when something not wotk in instance but work in continents
possible magicly start work after this commit. For example, some gm commands.
From large systems that need more chnages for start work in full power in instances
can be referecned pool/gamevent system. Last need just small hacks drop changes but
in will addded in independent commit.
2011-02-12 09:52:16 +03:00
VladimirMangos
9a8a74c2ad [11138] Make sure GameEvent/Pool systems work with static instance object guids
* Pool System for correct full power work in instance need implement
  MapPersistentState local pool system state for instanceable maps.
  Unit this not implemented pool system must avoid creating/despawn/touch
  instance map objects. Currently this work because instance map object use
  dynamic generated guids and "invisible" for Pool System, with explcitly forbiden
  for it spawn directly new objects. Code changes add explicit checks for preserve
  this way work for time when instance object will use static guids. When local pool
  state storing in persistent state this protection checks will possible drop.
  Non-instanced working cases converted in local map object search calls.

* GameEvent Systems currently have code that work correctly only with objects at
  non-instanced maps by same reasons as Pool System. But in different Pool System
  case game event activate/deactivate expected applied to _all_ object copies in all
  existed instanceable map copies. Code modified for work in expected way.
  Direct spawn disabled for instanceable maps until swith to static guids.
  Despawn code will make affect only for non-instanceavble maps unit swithc to static guids as-is.
  This is preserve current code working result.

* Convert last case usage global creature search in aura code to map local case.
  Player case also possible not need now after including caster damage/heal mods
  part to aura base damage/heal. In any cases player case preserved in old way work.

NOTE: this last places dependent from global creature/gameobject guid search so look like this
      make possible start direct work to switch instances use static guids instead dynamic generated
2011-02-12 07:24:04 +03:00
NoFantasy
d1007e49ca [11108] Add (parts of?) dummy aura for spell 56422
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-05 11:31:05 +01:00
VladimirMangos
f09a4e2a1a [11103] Fixed item 40775 mount work
* Move code to dummy aura (main spell mount aura not applied yet in time scripting effect processing)
* Use special mount spell selection helper instead raw code.
2011-02-02 20:28:11 +03:00
VladimirMangos
44cb8b6dd4 [11102] Provide for mount helper function parent spell data.
This let skip for triggered spell redundent (like cast time) info.
2011-02-02 20:04:40 +03:00
VladimirMangos
06cebecd50 [11100] Avoid send SMSG_DISMOUNT for non aura source mount state.
This fix problem with lost mount show at multi-node taxi path.

Thanks to blueboy for research problem.
2011-02-02 17:33:19 +03:00
Schmoozerd
c05f910484 [11095] Add dummy effect of spell 68839
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 10:13:26 +01:00
NoFantasy
d4304d471d [11088] Add missing equipment for spell 41101
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-31 10:14:02 +01:00
NoFantasy
38758b31a1 [11087] Add missing equipment for spell 53790
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-31 10:02:06 +01:00
NoFantasy
f98a9e4eee [11084] Add dummy auras for spells 53790,53791,53792 and 41099,41100,41101
Note: two of them are still missing data for equipment.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-30 16:48:47 +01:00
NoFantasy
e3e6811740 [11083] Add dummy aura effect of spell 52098
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-30 00:16:35 +01:00
zergtmn
26dc35f356 [11082] Correct meaning of two threat/aggro related spell attributes
- SPELL_ATTR_EX_NO_INITIAL_AGGRO renamed to SPELL_ATTR_EX_NO_THREAT
- SPELL_ATTR_EX3_UNK17 renamed to SPELL_ATTR_EX3_NO_INITIAL_AGGRO
- Remove custom spell modifier from talent 30675 and ranks handler
2011-01-29 21:57:40 +05:00
NoFantasy
9bf384cefa [11075] Add models for spell 71450
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-28 11:51:01 +01:00
breakwater
d5b982cbbe [11065] Implement stun absorb part of spell 24858
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-24 23:07:39 +03:00
Sarjuuk
a7bf12de71 [11050] Implement aura state AURA_STATE_BLEEDING (18)
Signed-off-by: zergtmn <zerg@myisp.com>
2011-01-20 03:26:00 +05:00
zergtmn
452b3d9e05 [11041] Tabs to spaces 2011-01-19 03:08:46 +05:00
Feanordev
a6ea82682d [11037] Max health dependent heal bonus for spell 55428 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-18 16:36:17 +03:00
Ceris
97756e95a2 [11034] Implement self-damage part of spell 49016 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-18 15:08:54 +03:00
Neo2003
01b9ae6c58 [11029] Rewrite comment line from engrish.
Also thanks to Schmoozerd for pointin to other fixed typos.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-17 19:00:51 +03:00
VladimirMangos
5099b9133c [11026] Implement damage reduction part of spell 50720 2011-01-17 18:05:27 +03:00
michalpolko
7d61f8470e [11024] Fixed work spell 50720
* Threat redirection correctly applied
* Implemented cooldown reset part.

Note: Damage redunction still not fixed.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-17 15:21:03 +03:00
x3n
d35be7f4c1 [11023] Implement support for threat multiplier and AP based threat bonus for spells.
* Higher ranks are now automatically filled when not listed in spell_threat
* Added some loading checks to detect inconsistent data

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-01-17 12:55:24 +01:00
VladimirMangos
0c19c2c6a2 [11015] Prevent crash at player far teleport landing to nonexisten battleground instance.
Teleport back in like case or to homebind in bad case.
2011-01-16 00:31:41 +03:00
pasdVn
f9a6513d38 [11013] Implemented spell 34026 and bonus to it from talent 35029 and ranks
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-15 21:17:13 +03:00
VladimirMangos
8d62e9dbf7 [11004] Fixed not apply spell for current form at learning.
Some non-passive spells autocasted at shapeshift but without fix
in case already active form at like spell learning it not has been casted
in different from passive similar spells.

This is fix apply dodge chance part of spell 17002 for described case.
2011-01-14 03:59:22 +03:00
VladimirMangos
d6eef703ce [10997] Fixed my wrong addition for wrong spell 58914 (instead 34026). 2011-01-11 05:11:02 +03:00
VladimirMangos
15943c95d8 [10996] Move set max original aura stack cases to aura holder creating
This will avoid show unexpected "gain Name Name(2) Name(N)" spam in log.

Maybe exist more nice way seelct like spells instead raw listing but i not see currently it.
2011-01-10 15:34:31 +03:00
x3n
f56ae22ed9 [10981] Removed 600 percent threat mod for talent 50385
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-07 08:25:10 +03:00
Kid10
b206e5ddd0 [10962] Fixed wrong spell cast code call with missing bool arg.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added trap code for like wrong cases
2011-01-05 00:54:38 +03:00
QAston
4fe41fb335 [10957] Implement auras SPELL_AURA_MOD_DISARM_OFFHAND (254) and SPELL_AURA_MOD_DISARM_RANGED (278).
Thanks to Qsa prepare for mangos.

Note: single unsure case: is block chance must be show or set to 0 in shield disarm time.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-04 06:42:35 +03:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
NoFantasy
14c8db9c9a [10937] Add models for spell aura 50517 and 51926
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-29 21:18:39 +01:00
zergtmn
ec6089bbd8 [10935] Move script calls to ScriptMgr
- Script library presence is now optional.
- Some script hooks have new names. Scripting libraries need to be adjusted accordingly.

Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-29 21:48:06 +05:00
NoFantasy
dfa30a495d [10930] Add models for spell 65528 and 65529
Add spells in commented form that will need custom handling in similar way for the same aura effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 21:03:34 +01:00
NoFantasy
1031f3b5d2 [10926] Remove player-only limit for HandleAuraTransform where miscvalue is 0
Add error output for unhandled spells plus minor code cleanup

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-28 11:57:50 +01:00
insider42
5f4dcbbe93 [10917] Allow SPELL_AURA_MOD_PACIFY auras to affect creatures
Signed-off-by: zergtmn <zerg@myisp.com>
2010-12-24 19:45:07 +05:00
zergtmn
f7d58220a5 [10916] Implement dummy aura for spell 75973 2010-12-24 18:48:34 +05:00
VladimirMangos
d1b0e5b40f [10915] Use HasFlag function for check flags instead raw access. 2010-12-24 05:38:48 +03:00
VladimirMangos
4302d925d6 [10890] Merge apply/remove cases for recently added dummy auras. 2010-12-18 16:15:24 +03:00
NoFantasy
781841baf1 [10889] Add dummy aura effect of spell 42517
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-18 10:00:03 +01:00
NoFantasy
a17ccd4b97 [10888] Use 0.0f in one function and prevent some compiler warnings.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-18 09:34:15 +01:00
NoFantasy
f13fb6e52c [10887] Add dummy aura effect of spell 42515
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-18 09:16:37 +01:00
reagent
85c3e2e3be [10868] Fixed spell 53479.
(based on insider42's repo commit b0343e1)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-13 16:49:41 +03:00
VladimirMangos
a2e74f182f [10857] Complete set Byte/ShortFlag value functions and use it for PLAYER_FIELD_BYTES proper access.
Not expected any changes in work.
2010-12-11 14:07:09 +03:00
NoFantasy
e1b243f375 [10846] Add dummy aura of spell 43874 (indirectly related to spell/effect 50133)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-09 11:39:52 +01:00
NoFantasy
4aa0ab7c40 [10845] Add dummy effect of spell 49634 and dummy aura of spell 56511
note* spell will need data in spell_script_target to work properly.
note* the effect of 56511 does not work, see comment in code for details (code added in any case, to not forget the problem)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-09 10:58:54 +01:00
michalpolko
4686f905ac [10843] Fix AuraType 138 to not affect ranged haste, and rename to SPELL_AURA_MOD_MELEE_HASTE.
Also type 192 had misleading name, rename to SPELL_AURA_MOD_MELEE_RANGED_HASTE.

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2010-12-09 02:18:53 +01:00
kb_z
1b4210e38c [10840] Implement server side part of SPELL_AURA_ADD_MECHANIC_ABILITIES (293) work.
Also fix stealth/invisibility visual affect flags changed at some 3.x switch.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-08 09:12:44 +03:00