Commit Graph

1147 Commits

Author SHA1 Message Date
DemiDroL
832062589b Crashfix: GetInstanceScript() if target is NULL in achievement_defenseless 2011-10-02 22:53:57 +10:00
Discover-
bc030cc9ee Scripts/Dustallow: Fix quest Prisoners of the Grimtotems
Closes #2904
2011-10-02 02:03:16 +01:00
Nay
03a17b2461 Core/Scripts: Tallhorn Stag should melee attack, by Discover-.
Closes #2623
2011-10-01 19:15:49 +02:00
Lopin
62980da8df Scripts/Ulduar: Crashfix 2011-09-30 22:49:21 +02:00
unknown
8acf07dbab Random minor code cleanup 2011-09-29 22:35:00 +04:00
Spp
b16d2245bb Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces

Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
Spp
9e517c963b Cosmetic: Replace "* )" with "*)" and "* /*" with "* /*" 2011-09-29 09:32:55 +02:00
Machiavelli
d0ce7d2367 Scripts/Ulduar/Razorscale: Fix event starting 2011-09-28 11:49:28 +02:00
Spp
cc06c41887 Core: Move FormationMgr to namespace
Also...
- Warning fixes
- Make Singleton constructors private
2011-09-28 11:11:38 +02:00
Machiavelli
88d30aaa65 Merge pull request #3174 from Souler/pull
Scripts/Ulduar: Make Ignis enter evade mode if pulled out from his fight area.
2011-09-28 01:32:33 -07:00
Machiavelli
6d4a7b3930 Scripts/Ulduar/Flame Leviathan: Use GUID in script instead of pointer 2011-09-27 19:56:45 +02:00
Machiavelli
a7d0b62195 Scripts/Ulduar/Flame Leviathan: Properly cast spell Battering Ram. TODO: Fix spell immunity on target vehicles. 2011-09-27 19:41:56 +02:00
Souler
a51e2d3ff6 Remove XT-002 area check, already fixed by @MachiavelliTrinity in 9692be4cbb 2011-09-27 11:56:08 +03:00
QAston
a2633bf7fc Scripts: fix spell_generic_quest_update_entry script after e949ad3adb. 2011-09-27 00:12:45 +02:00
Machiavelli
c095cbb0ed Make recent added Spellscript conform to hook name changes in e949ad3adb 2011-09-26 22:00:12 +03:00
Machiavelli
7ec351a79d Scripts/Ulduar/Flame Leviathan: Fix Pursue spell (target selection/filtering, emote, and aggro), and clean up some atrocities in the script. 2011-09-26 20:47:51 +02:00
Shocker
6dc09248fd Merge pull request #3162 from megamage/master
Fix incorrect logic in PetAI. Solve #3155.
2011-09-26 06:44:33 -07:00
megamage
780747f5d3 Missing part of the previous commit. 2011-09-26 09:14:12 -04:00
megamage
a35deba186 Fix some crashes caused by spell scripts without checking unit type. Fix #3216 and #3217. 2011-09-26 09:03:33 -04:00
Shauren
062e645637 Scripts/Spells: Bloodlust/Heroism handling changed, it is now possible to use these spells even if caster is under Sated/Exhaustion debuff 2011-09-25 15:08:48 +02:00
QAston
e949ad3adb Core/Spells: spell effect handling improvements
* Call spell effect handlers in 4 modes:
   - SPELL_EFFECT_HANDLE_LAUNCH - called when spell is launched (cast just finished)
   - SPELL_EFFECT_HANDLE_LAUNCH_TARGET - called when spell is launched for each target in spell target map
   - SPELL_EFFECT_HANDLE_HIT - called when spell hits its destination
   - SPELL_EFFECT_HANDLE_HIT_TARGET - called when spell hits it's target from spell target map
*Correctly implement SPELL_EFFECT_TRIGGER_SPELL, SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL
*Remove spell system hacks which became obsolete with this commit
Core/SpellScripts:
add OnEffectLaunch, OnEffectLaunchTarget, OnEffectHit, OnEffectHitTarget hooks for new effect handle modes and remove OnEffect hook.
A generic rule of thumb how to update your scripts (will work for nearly all cases) for spell system noobs:
if your spell script used GetHitXXXX function, you need to use OnEffectHitTarget, otherwise use
OnEffectHit
2011-09-25 13:29:50 +02:00
Machiavelli
911c7ce3cc Scripts/Ulduar/Flame Leviathan: Fix RX-214 Repair-o-matic station.
Note: Due to an aura system bug, the dummy cooldown aura is refreshed every time the trap spell is cast instead of expiring like it should.
2011-09-24 13:13:15 +02:00
Shauren
29ba648fa3 Scripts/Icecrown Citadel: Fixed possible crash in npc_darnavanAI
Closes #3188
2011-09-24 11:29:49 +02:00
Machiavelli
9692be4cbb Scripts/Ulduar/XT-002: Add gameobject handling for XT-002 door and boundary checking during the encounter. 2011-09-23 13:20:43 +02:00
Souler
99c63e86ae Scripts/Ulduar: Make XT-002 and Ignis enter evade mode if pulled out from their fight areas.
Also implement a default case for EnterEvadeIfOutOfCombatArea.
2011-09-22 22:14:52 +02:00
Machiavelli
9ea40a4746 Scripts/Ulduar/Kologarn:
- Fix arm respawn and reinstall events
- Fix possible erratic event timers
- Fix Focused Eyebeams after recent spell system changes
- Fix looting the chest after the encounter
2011-09-22 21:19:26 +02:00
Machiavelli
c909da08cd Scripts/Ulduar/XT-002: Fix erratic timer issues and stand/submerge spell script targets.
Fixes #2961
2011-09-22 20:13:40 +02:00
Rochet2
a0a22ecbc8 Scripts/Commands: Added .dev command to show <Dev> tag in nickname 2011-09-21 11:35:29 -03:00
QAston
a0030ef334 Really fix build (sorry for that:() 2011-09-21 11:06:31 +02:00
QAston
87d9a1d384 Scripts/TwinValkyr: Fix build. 2011-09-21 10:40:11 +02:00
kiper
cdb4f60a14 Merge pull request #3040
Core/Spell: Fix spell related to reputation in Oracle and Frenzy faction
2011-09-21 10:02:30 +02:00
QAston
82bc917265 Merge pull request #2908 from Drethek/TwinsValk
Scripts:
Twins Valk - Cleanup / Remove Hardcoded Bullet Spawn (Need DB Support - Stalkers Spawns)
Acidmaw - Use Correct Submerge Spell
Trial Of Crusader - Correct Coordinate Spawn
Trial Of Crusader - Correct Open/Close Main Door Timer
Trial Of Crusader - Open/Close On Boss EnterEvadeMode
2011-09-21 00:27:20 -07:00
Shauren
7c3f40b6b7 Compile fix 2011-09-19 13:33:19 +02:00
Shauren
ff66d933d8 Scripts/Icecrown Citadel
* Traps after Deathbringer Saurfang will not turn off anymore
* Fixed Valithria Dreamwalker adds not attacking players

Closes #2343
Closes #2485
Closes #2815
2011-09-19 12:21:36 +02:00
click
872c2d4d63 Core/Build: Fix non-PCH builds 2011-09-18 16:30:18 +02:00
Shauren
8ce80db6e6 Scripts/Icecrown Citadel
* Suppresser adds will not melee attack Valithria Dreamwalker (they still can do that to players)
* Changed DoZoneInCombat calls on summons to randomly selected target from summoner's threat list as the former fails if there is noone within 50 yards

Closes #3094
2011-09-18 11:50:52 +02:00
Machiavelli
a4ea803c83 Edited src/server/scripts/Northrend/Ulduar/ulduar/boss_flame_leviathan.cpp via GitHub 2011-09-18 12:08:22 +03:00
Machiavelli
35228bdcc1 Scripts/Ulduar: Fix timer issues in Flame Leviathan script, thanks to Svannon.
(Edit via github)
2011-09-18 11:39:35 +03:00
Aokromes
0f908d4b1e Scripts/Shadow Labyrinth: Fix wrong target of Incite Chaos spell 2011-09-18 11:26:22 +07:00
QAston
fe25ce4fa3 Core/AI: Replace many Unit::IsHostileTo with Unit::IsValidAttackTarget or Creature::canCreatureAttack. 2011-09-17 00:56:59 +02:00
QAston
c0b1823524 Core/Entities: Replace Unit::canAttack usage with more accurate Unit::IsValidAttackTarget 2011-09-16 23:49:31 +02:00
Shauren
c93c27d056 Scripts/Icecrown Citadel:
* Mark of the Fallen Champion should be a debuff
* Fixed periodic damage taken from Twisted Nightmare on heroic difficulties of Valithria Dreamwalker encounter
2011-09-16 11:29:35 +02:00
Spp
6c943bfb08 Core: Cleanup in MiscHandler::SendAreaTriggerMessage and warning fixes 2011-09-16 10:53:24 +02:00
Shocker
7afb179185 Misc/Util: Add a template function for returning a random element from any container 2011-09-15 21:28:40 +03:00
Nay
791acfebac Core/Spells&GOs: Fix Ritual of Doom.
Thanks QAston and Shocker for helping.
Closes #2535
2011-09-15 17:52:35 +01:00
Spp
af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
Nay
bff26d9319 Scripts/TOC: Anub'arak should enrage after 10 minutes, not 15. By telsamat.
Closes #2289
2011-09-15 01:46:32 +02:00
QAston
decb20f079 Merge pull request #2991 from megamage/master
Core/Entities: Do not call AddObjectToRemoveList(Pet*) in Map::MoveAllCreaturesInMoveList() - Closes #2892.
Scripts: Fix a crash in npc_brunnhildar_prisoner script. Closes #2825.
2011-09-14 14:27:21 -07:00
kaelima
60f7737272 Core/DataStore: Add struct for LiquidTypeEntry.dbc, unused for now. 2011-09-14 15:02:12 +02:00
Spp-
33ce07bdde Core: Minor cleanups (here and there)
- Fix warning
- Fix some typos
- Correct upper 'for' limit in LoadSkillLineAbilityMap
- Remove use of magic number in a query related to security levels
2011-09-13 14:15:35 +02:00