azazel
5fa14f58dc
Core/Cleanup:
...
* move repeating code into separate method for storing locale strings in ObjectMgr (copy/paste sucks, you know)
* fix 'signed/unsigned' warnings (at least in VS)
* fix some other warnings and cleanup relative code
--HG--
branch : trunk
2010-08-26 15:54:56 +06:00
azazel
341e6303ef
Core:
...
* add helping methods for manipulating unit's health and use it where applicable
* fix some conversion warnings and cleanup code (formatting, CRLF, tabs to spaces)
--HG--
branch : trunk
2010-08-26 01:20:57 +06:00
Shocker
bd2ffab07a
* Move Paladin Judgement bonuses to spell_bonus_data, thanks deltapower.inc
...
* Avoid code duplication by moving spell interrupt code for jump effects to a common function for both EffectJump and EffectJumpDest, thanks devthenecro
--HG--
branch : trunk
2010-08-25 18:24:40 +03:00
Shocker
020211bb31
Fix seal unleash damage for Seal of Wisdom / Light / Justice / Vengeance
...
--HG--
branch : trunk
2010-08-25 06:17:12 +03:00
Shocker
c741163313
Knockback (ex: Thunderstorm) and Jump (ex: Death Grip) effects must instantly interrupt spellcasting on victim. Fixes issue 1973
...
--HG--
branch : trunk
2010-08-25 05:14:16 +03:00
Shocker
4da71ac657
* Fix a crash in Culling of Stratholme
...
* Typo fix from previous rev
--HG--
branch : trunk
2010-08-25 03:53:43 +03:00
Shocker
d3c6edeb4a
Correct usage of basePoints in various locations
...
--HG--
branch : trunk
2010-08-25 03:21:22 +03:00
click
e5337169c8
Core: Fix non-PCH builds - defining SpellScripts before we have the auraApplications defined will not work
...
--HG--
branch : trunk
2010-08-24 16:07:52 +02:00
Spp
9e4357c9ad
Core: Fix more warnings
...
--HG--
branch : trunk
2010-08-24 14:44:56 +02:00
Shocker
c728681422
* Remove some old checks in aura stacking and change default stack rule to true
...
* Add stacking rules for Mark/Gift of the Wild, Power Word/Prayer of Fortitude, Prayer of/Shadow protection
NOTE: Although highly unlikely, this *might* cause some stacking problems until we properly define rest of the stacking rules in spell_group, so report any stacking issues
* Some missing lads from THANKS file
--HG--
branch : trunk
2010-08-24 14:38:00 +03:00
Shocker
5e92a8e55a
Fix accessories for vehicle player mounts (the vendors on Traveler's Tundra Mammoth for example)
...
--HG--
branch : trunk
2010-08-24 07:19:29 +03:00
silinoron
8649bee17f
Replace World::getConfig with World::getFloatConfig, World::getIntConfig, and World::getBoolConfig.
...
Also fix a warning from a previous commit.
--HG--
branch : trunk
2010-08-23 19:56:47 -07:00
silinoron
6601f46fd3
Fix Bladestorm and disarm.
...
Fixes issue #1899
Fixes issue #2562
Fixes issue #2833
--HG--
branch : trunk
2010-08-23 17:11:50 -07:00
silinoron
34384a3832
Spell 62124 should allow critical hits.
...
Based on patch by Toni.Shocker (yes, again).
Fixes issue #3554
Also get rid of GuildScript in TODO, as it already exists.
--HG--
branch : trunk
2010-08-23 15:51:34 -07:00
QAston
07a3a1254b
*Add AuraScript class for scripting aura objects - scripts are registered same way as SpellScripts, bound to SpellScriptNames table. For more details see example_spell.cpp and SpellScript.h
...
*Rename SpellHandlerScript to SpellScriptLoader, EffectHandlerFn to SpellEffectFn, HitHandlerFn to SpellHitFn, SpellScript::EffectHandlers to SpellScript::OnEffect, these changes were neccesary to prevent namespace collisions, happily you can solve these by simple find and replace
*Make spells 66244 and 5581 example scripts.
--HG--
branch : trunk
2010-08-24 00:10:49 +02:00
John Holiver
ad5c8cadf1
Fixes Mage T10 bonus. Thanks to Dr.Tenma. Close issue #3423
...
--HG--
branch : trunk
2010-08-23 13:26:25 -03:00
silinoron
ccc2a83510
* Some consistency changes.
...
* Move spell 6962 to spell scripts and make sure to set deathstate.
--HG--
branch : trunk
2010-08-22 21:07:18 -07:00
silinoron
5cbae843d5
Core/Game: fix all warnings related to converting doubles and floats.
...
--HG--
branch : trunk
2010-08-22 12:39:39 -07:00
azazel
399e35f8f5
Core:
...
* fix "warning C4305: 'initializing' : truncation from 'double' to 'float'" warnings
* fix some other warnings here and there
--HG--
branch : trunk
2010-08-22 23:46:40 +06:00
John Holiver
3fb1c08d20
Core/Script/Spells: Trial of the Crusader
...
* Keep in mind that this is a WIP although is extremely playable as it is.
* Known bugs are writen at the header of each file.
* If u know how to correctly solve any of those bugs or found a new bug, please report and, if you may, provide a fix for us to review.
* I'd like to thank all Trinity Community (in special, Shauren, QAston, Bio, Josh), rsa from SD2 for providing the base, all the ppl that helped me test and review so many many times.
* I personally have been working on this code since TC was near rev 8000 so i will take a break from it to work on other stuff (specially cause most of the bugs i was unable to solve alone).
* I'd like to strongly encourage others to provide the improvements that this instance need to become perfect.
* FInally, this commit might have something missing... i'll recheck as soon as i wake up tomorrow morning.
--HG--
branch : trunk
2010-08-22 05:55:54 -03:00
azazel
b0086ce4fc
Fix logic in SpellScript (thanks Toni.Shocker)
...
--HG--
branch : trunk
2010-08-22 13:04:10 +06:00
click
670964803f
Core: Fix more warnings, add new function sLog.outStaticDebug() that replaces DEBUG_LOG
...
--HG--
branch : trunk
2010-08-22 01:57:04 +02:00
Spp
572f7bbd1d
Core: Remove "may be used uninitialized in this function", "unused parameter ‘xxx’" and "'xxx' defined but not used" warnings
...
--HG--
branch : trunk
2010-08-21 23:08:54 +02:00
Spp
a136403dee
Core: Remove "suggest parentheses around ‘&&’ within ‘||’" and "suggest parentheses around assignment used as truth value" warnings
...
--HG--
branch : trunk
2010-08-21 21:54:41 +02:00
Spp
c15c605a11
Core: Remove "unused variable 'xxx'" warnings
...
--HG--
branch : trunk
2010-08-21 21:14:35 +02:00
Spp
e7856a831c
Core: Remove "enumeration value 'xxx' not handled in switch" warnings
...
--HG--
branch : trunk
2010-08-21 20:55:31 +02:00
QAston
77bd968c63
*Remove some unused containers from Spell class.
...
--HG--
branch : trunk
2010-08-21 21:00:06 +02:00
Spp
c3343638cb
Core: Remove lots warnings:
...
- All "'xxx' will be initialized after 'yyy' when initialized here"
- Some "unused variable"
- Some "enumeration value 'xxx' not handled in switch"
--HG--
branch : trunk
2010-08-21 20:08:47 +02:00
QAston
6714feb3ee
*Add script hooks for SpellScript class - now you can use BeforeHit, OnHit, AfterHit hook lists.
...
--HG--
branch : trunk
2010-08-21 20:18:54 +02:00
Shauren
d7814e88d8
Scripts/Icecrown Citadel: Added Lady Deathwhisper script, huge thanks to wowgargamel for script parts, timers and sniffs
...
Core/Scripts: Added GetPhaseMask() method to EventMap
--HG--
branch : trunk
2010-08-21 11:09:58 +02:00
John Holiver
fcca6060d0
Core/Spells/Scripts: Another spell effect needed for ToCr (Paralytic Toxin). Thanks for Dark0r.
...
--HG--
branch : trunk
2010-08-21 01:02:38 -03:00
John Holiver
ca350b4758
Core/Spells/Scripts: Needed spell fixes for some Trial of the Crusader bosses (Leeching Swarm, Slime Pool and Burning Bile)
...
--HG--
branch : trunk
2010-08-20 14:11:26 -03:00
QAston
30bcf8c659
Scripts/Spell: extend SpellScript class: add target aura accessors and functions which prevent various effects of the spell from being executed. Check out SpellScript.h for details
...
--HG--
branch : trunk
2010-08-19 14:31:31 +02:00
azazel
d4605c5f7f
Fix (in theory) bug (already tapped error) for spells with banish mechanics (Banish, Cyclone).
...
Closes issue #1945 .
Closes issue #2402 .
--HG--
branch : trunk
2010-08-19 16:20:06 +06:00
John Holiver
8bf208c0fd
Core/Spells: SPELL_ATTR_CU_IGNORE_ARMOR to Impale(65919) several difficulties
...
--HG--
branch : trunk
2010-08-18 15:21:24 -03:00
QAston
2ffe785765
Core/Spells: add SPELL_ATTR_CU_IGNORE_ARMOR to the avalible custom attribute list, make some spells use the attribute. Research made with JohnHoliver and Shauren
...
--HG--
branch : trunk
2010-08-18 19:26:07 +02:00
Shauren
71a5320eda
Scripts: Added script for Lord Marrowgar
...
Added base script for Icecrown Citadel instance
--HG--
branch : trunk
2010-08-18 17:19:47 +02:00
QAston
5e78e222c1
Core/Spells: Implement TARGET_DEST_CHANNEL_CASTER(106) and TARGET_GAMEOBJECT_AREA_PATH(108). Rename TARGET_UNIT_CHANNEL to TARGET_UNIT_CHANNEL_TARGET, TARGET_DEST_CHANNEL to TARGET_DEST_CHANNEL_TARGET
...
--HG--
branch : trunk
2010-08-18 15:04:00 +02:00
azazel
66fcd52106
Add more methods to SpellScript.
...
Spells cleanup: move spells from the core to scripts.
* Shaman spells: 39610 Mana Tide Totem, 1535 Fire Nova (and ranks)
* Death Knight spells: 55090 Scourge Strike (and ranks), 49158 Corpse Explosion (and ranks), 50524 Runic Power Feed
* Druid spells: 54846 Glyph of Starfire
* Warlock spells: 6201 Create Healthstone (and ranks), 47422 Everlasting Affliction, 47193 Demonic Empowerment, 63521 Guarded by The Light
* Hunter spells: 37506 Scatter Shot, 53412 Invigoration, 53209 Chimera Shot
* Quest spells: 45449 Arcane Prisoner Rescue (quest 11587), 46023 The Ultrasonic Screwdriver (quest 11730). Closes issue #3068
Clean old code for hunter's Heart of the Phoenix, move script effect of hunter's Master's Call to corresponding script.
Move DK's Hungering Cold to spell_scripts table (needs DB support)
--HG--
branch : trunk
2010-08-18 00:20:23 +06:00
QAston
0284ed4cfe
*Core/Spells: Implement TARGET_UNIT_SUMMONER
...
*Rename TARGET_UNIT_MINIPET to TARGET_UNIT_TARGET_PUPPET.
--HG--
branch : trunk
2010-08-17 20:19:06 +02:00
azazel
c6b4309f1e
* Unsummon pet if direct control spell expire out of visibility range from owner (base on VladimirMangos changes)
...
* Move repeating code to separate method
--HG--
branch : trunk
2010-08-12 12:14:32 +06:00
click
3d48c480ce
Fix: append a .c_str() on a variable in Spell.cpp (no more grumpy compilers) - Thanks to StormByte for the heads up
...
Fixes issue 3343
--HG--
branch : trunk
2010-08-09 20:20:55 +02:00
Brian
1f52153410
Backed out changeset f751065ec933
...
Spell rep rate was already implemented by QAston
--HG--
branch : trunk
2010-08-09 11:33:31 -06:00
azazel
f5399618d9
Implement reputation rates and aura effects for Spell::EffectReputation() (thanks Lynx3d)
...
--HG--
branch : trunk
2010-08-09 23:22:31 +06:00
QAston
fa8a826656
*(More) correct implementation of SPELL_EFFECT_PULL_TOWARDS_DEST(145)
...
--HG--
branch : trunk
2010-08-09 02:31:42 +02:00
QAston
617a56ba29
*Implement spell casting on transports (no more out of range error, etc)
...
*Add MO transports to ObjectAccessor storage
*Add functions Position::RelocateOffset and Position::GetPositionOffsetTo to help offset manipulations - BIG thanks to azazelkon for creating formulas!
*Add function to output debug info for MovementInfo and SpellCastTargets
*Throw ByteBufferException on incorrect packGUID read
*Add rfinish function to finish bytebuffer read.
--HG--
branch : trunk
2010-08-08 20:32:14 +02:00
click
1f80c7b3c0
Sourcefile sleanups -> tabs to spaces, remove whitespace - also update the cleanupscripts very slightly
...
--HG--
branch : trunk
2010-08-08 19:45:53 +02:00
XTZGZoReX
9083271a2f
* Some singleton renames for consistency:
...
accmgr -> AccountMgr
objmgr -> ObjectMgr
auctionmgr -> sAuctionMgr
spellmgr -> sSpellMgr
CreatureEAI_Mgr -> sEventAIMgr
achievementmgr -> sAchievementMgr
gameeventmgr -> sGameEventMgr
sInstanceSaveManager -> sInstanceSaveMgr
poolhandler -> sPoolMgr
--HG--
branch : trunk
2010-08-08 05:25:45 +02:00
XTZGZoReX
909e332579
* Rename: BattleGround -> Battleground.
...
--HG--
branch : trunk
2010-08-08 04:37:24 +02:00
silinoron
443226c562
Unholy Blight should prevent the dispelling of diseases.
...
Fixes issue #2609
Fixes issue #2982
--HG--
branch : trunk
2010-08-06 21:32:42 -07:00