Commit Graph

6972 Commits

Author SHA1 Message Date
teacher
3ddea83ffa First part of renaming sql update files which did not respect Trinity standard.
Moved old sql update files to sql\updates\3.2.2a_old folder.

--HG--
branch : trunk
2010-01-12 21:06:54 +01:00
Astellar
b2082db189 Do not compute incoming time for self casts.
--HG--
branch : trunk
2010-01-11 22:24:31 +03:00
XTZGZoReX
ebc5901161 * Fix crash when there's no creature_classlevelstats entry for a creature level.
* All this really does is fill in default values of 1.. If you got custom content, you'll have to fill in the creature_classlevelstats table yourself. This patch doesn't automagically fix stats for you.

--HG--
branch : trunk
2010-01-11 18:13:21 +01:00
Astellar
879948260f Fixed typo.
--HG--
branch : trunk
2010-01-11 20:01:16 +03:00
Astellar
2564f5470a Fixes Issue #153. Earth Shield should not proc from positive spells. So flag PROC_FLAG_TAKEN_POSITIVE_MAGIC_SPELL is removed.
--HG--
branch : trunk
2010-01-11 18:58:23 +03:00
Brian
378388d0a6 * Add support for .gobj target to output phaseMask
* Thanks to Aokromes for the original idea of adding it to .npc info output.

--HG--
branch : trunk
2010-01-10 19:03:47 -07:00
XTZGZoReX
f05147a90f * Aaaaand, the SQL for the last commit. All done by Malcrom <3.
--HG--
branch : trunk
2010-01-10 22:10:08 +01:00
XTZGZoReX
a66152215e * Add support for base armor values in creature_classlevelstats.
* Change the table structure to be more core-friendly.
* Remove armor field in creature_template and add Armor_mod field.
* Also add static CreatureBaseStats::GetBaseStats() function for scripts.

--HG--
branch : trunk
2010-01-10 22:02:03 +01:00
QAston
997a861a41 * Fix a typo in spell id number - thanks to Visagalis for pointing this out.
--HG--
branch : trunk
rename : sql/updates/6959_characters_character_aura.sql => sql/updates/6962_characters_character_aura.sql
rename : sql/updates/6959_characters_pet_aura.sql => sql/updates/6962_characters_pet_aura.sql
2010-01-10 21:40:13 +01:00
silver1ce
8c85caf41d Resolves #259 fixed crash, caused by incorrect cell_id generation
--HG--
branch : trunk
2010-01-10 22:28:36 +02:00
QAston
bf33b9b494 *Merge after backout.
--HG--
branch : trunk
2010-01-10 21:24:39 +01:00
QAston
4374709a38 Backed out changeset 343bb9cc23ce - mistake fixed in last commit was the real problem.
--HG--
branch : trunk
2010-01-10 21:24:02 +01:00
QAston
929a43bb53 * Fix a mistake in boss_satharion script which gave players very usefull auras...
--HG--
branch : trunk
2010-01-10 21:19:04 +01:00
Astellar
f41e837143 Addition to previous commit.
--HG--
branch : trunk
2010-01-10 22:42:41 +03:00
Astellar
40f70a8594 Fixed quest Catch and Release, some fixes for Tag Murloc spell.
--HG--
branch : trunk
2010-01-10 22:37:31 +03:00
QAston
ef24d90472 * Make sure that aura is applied on unit before trying to remove it.
--HG--
branch : trunk
2010-01-10 20:09:44 +01:00
Astellar
4bd6d06e26 Fixed typo.
--HG--
branch : trunk
2010-01-10 22:01:18 +03:00
_manuel_
17d4de192b Removed unnecessary sentence.
--HG--
branch : trunk
2010-01-10 15:39:18 -03:00
Brian
1e7087c75c * add armor output in .npc info
--HG--
branch : trunk
2010-01-10 16:11:24 -07:00
Paradox
6b05543087 All sql updates MUST have at least one newline at the end.
--HG--
branch : trunk
2010-01-10 13:29:24 -05:00
Rat
9118b5313c *removed not existing file from VC90 project file
--HG--
branch : trunk
2010-01-10 18:26:35 +01:00
_manuel_
8d4aad2636 Merge
--HG--
branch : trunk
2010-01-10 14:14:40 -03:00
_manuel_
2eafa17483 Borean Tundra: Improvements in lurgglbrAI by Kudlaty.
--HG--
branch : trunk
2010-01-10 14:13:33 -03:00
QAston
2a5493a4bc *Merge
--HG--
branch : trunk
2010-01-10 17:50:20 +01:00
QAston
334de07dfb Fixes #262. Do not keep area aura enemy targets in combat - 61248 doesn't bring whole northrend to Dalaran anymore:)
--HG--
branch : trunk
2010-01-10 17:49:35 +01:00
_manuel_
f636bf12b9 Fixed quest 11881 by Kudlaty.
--HG--
branch : trunk
2010-01-10 13:46:33 -03:00
Trazom62
58927805f9 Fix Naxxramas Gluth timers. Thanks scarymovie87
Fixes #251

- Timers:
* EVENT_ENRAGE : Start 15 sec, Repeat 15 sec
* EVENT_SUMMON : Start 15 sec
- Code style : Replace "return;"s with "break;"s in switch-case
- Added comments for missing texts and hardcoded emote that should be done with a script text entry.

--HG--
branch : trunk
2010-01-10 17:29:37 +01:00
Rat
5b6079ea67 *cleaned up SharedDefines
--HG--
branch : trunk
2010-01-10 16:27:47 +01:00
silver1ce
74bd8084a0 dropped old code, which unused since new visibility system implemented
--HG--
branch : trunk
2010-01-10 16:33:14 +02:00
Rat
903f975dc8 *fix spell: Tag Murloc (30877)
--HG--
branch : trunk
2010-01-10 15:29:04 +01:00
QAston
feb7acf8aa *spell_linked_spell entry for Deterrance. Resolves #237.
--HG--
branch : trunk
2010-01-10 14:51:34 +01:00
QAston
3f6ad61905 *Correct code in npc_geezleAI which caused assertion fail.
--HG--
branch : trunk
2010-01-10 13:54:48 +01:00
QAston
f9c4030f59 *Implement attribute SPELL_ATTR_NEGATIVE_1
*Remove unneeded hacks from SpellMgr::_isPositiveSpell
*Missing ! in prev commit.

--HG--
branch : trunk
2010-01-10 13:48:57 +01:00
silver1ce
eea50de960 now all aura updates are placed into one packet
--HG--
branch : trunk
2010-01-10 13:52:13 +02:00
QAston
e3ff6145ee * Use pair<uint32, uint64> lists instead of <Aura*> lists in Dispel/SpellSteal effects handlers (prevent reference to aura removed from unit)
* Correctly fill EffectStealBeneficialBuff list with Stackable/Chargeable auras

--HG--
branch : trunk
2010-01-10 12:08:58 +01:00
Anubisss
6cbe65eaa3 Fix a mem leak.
--HG--
branch : trunk
2010-01-10 11:20:52 +01:00
QAston
c65aa45bc6 *Tabs to spaces
*Fix a type in CreatureEventAI.cpp from last rev

--HG--
branch : trunk
2010-01-10 02:12:02 +01:00
QAston
8417a4fee3 *Merge
--HG--
branch : trunk
2010-01-10 01:24:20 +01:00
QAston
8e9d2cdf01 Update aura system:
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras:
  * Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type
  * Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras
  * Aura data is shared for all units which have AuraApplication of the Aura
   * Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now)
  * Remove spell source and AreaAuraEffect classes
  * Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant)
  * Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation
  * AreaAura updates are done in owner _UpdateSpells cycle
  * Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list
  * And you can access area aura target list
  * Add basic support for aura amount recalculation
  * Save recalculation state and base amount of auras to db
  * Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db
  * Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets
  * Sort aura effect handlers in SpellAuras.cpp and .h by their use
  * Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal
  * SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly
  * Send aura application client update only once per unit update - prevent unnecesary packet spam
 * Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet
 * Fix memory leak at player creation (not deleted auras)
 * Updated some naming conventions (too many to mention)
 * Added Unit::GetAuraOfRankedSpell() function
 * Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead
 * Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc)
 * Implement AURA_INTERRUPT_FLAG_LANDING
 * Implement EffectPlayerNotification (thanks to Spp)
 * Remove wrong aura 304 handler
 * Add better handler for death runes
 * Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura
 * Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script
 * Add many assert() procection from idiots using some functions in wrong way
 * I am to lazy to write here anything more
Thanks to Visagalis for testing this patch
PS: Do not make patches like this, please

--HG--
branch : trunk
2010-01-10 01:23:15 +01:00
Paradox
10df64be88 Add missing scripts to world_scripts_full script instance_trial_of_the_champion will still throw an error, until someone adds an instance template for it (map 530), and assigns the scriptname again.
--HG--
branch : trunk
2010-01-09 18:51:11 -05:00
Trazom62
a0f7762cab Fix Drakarri Colossus: mojo stay passive only if colossus still alive
--HG--
branch : trunk
2010-01-09 14:19:00 +01:00
Trazom62
41a19a5557 Fix Script: add missing initialization. Fixes #216
--HG--
branch : trunk
2010-01-09 14:18:06 +01:00
Trazom62
12f31a9e87 *Fix Drakarri Colossus event not starting
- didn't started if the colossus was spawn after the mojo
- avoid hard-coded coord

--HG--
branch : trunk
2010-01-09 13:05:47 +01:00
_manuel_
dcf4883b51 Implemented new event for EventAI, EVENT_T_RESET.
--HG--
branch : trunk
2010-01-08 14:40:55 -03:00
_manuel_
d4228470e4 Fixed typo by Corfiik. Now talent Tidal Waves should work.
--HG--
branch : trunk
2010-01-08 13:12:49 -03:00
XTZGZoReX
c3e02980ef * Fix some more cases where movement flags were +'d together, instead of |'d.
--HG--
branch : trunk
2010-01-08 07:59:39 +01:00
_manuel_
44de20cf3f Fixed typos in scripts from Trial of the Champion. Thanks to Spp.
--HG--
branch : trunk
2010-01-08 01:22:26 -03:00
Brian
fd26ad5611 * Hopefully fix creature so they swim if InhabitType|2
--HG--
branch : trunk
2010-01-07 22:49:06 -07:00
Brian
f91b289733 * Added support for outputting phasemask in .npc info
--HG--
branch : trunk
2010-01-07 21:43:55 -07:00
_manuel_
d4b9cafb18 Deadmines: Implemented Mr.Smite chest event.
--HG--
branch : trunk
2010-01-07 20:47:34 -03:00