Scripts/WanderingIsle: Implement quest 29421 Only the Worthy Shall Pass#31624
Scripts/WanderingIsle: Implement quest 29421 Only the Worthy Shall Pass#31624Saburo-Arasaka wants to merge 16 commits intoTrinityCore:masterfrom
Conversation
DB/WanderingIsle: Implement quest 29421
DB/WanderingIsle: Implement quest 29421
| case Events::Event_shadow_kick: | ||
| { | ||
| if (me->GetVictim()) | ||
| me->CastSpell(me->GetVictim(), Spells::spell_flying_shadow_kick); |
| } | ||
| case Events::Event_shadow_kick_stun: | ||
| { | ||
| if (me->GetVictim()) |
| { | ||
| PreventDefaultAction(); | ||
|
|
||
| GetCaster()->CastSpell(GetCaster()->GetVictim(), Spells::spell_fury_kick_damage, true); |
There was a problem hiding this comment.
caster can be null unless the spell is caster only
There was a problem hiding this comment.
how i can do it?
There was a problem hiding this comment.
check for null pointer?
if (!GetCaster())
return;
| damage = 0; | ||
| me->SetFaction(35); | ||
| me->CombatStop(); | ||
| me->SetUnitFlag(UNIT_FLAG_IMMUNE_TO_PC); |
| player->RemoveAurasDueToSpell(Spells::spell_fire_crash_phase_shift); | ||
|
|
||
| Map* map = player->GetMap(); | ||
| Creature* lifei = map->GetCreatureBySpawnId(Guids::Li_Fei_quest_guid); |
There was a problem hiding this comment.
StringId + FindCreatureWithOptions
| if (!lifei) | ||
| return; | ||
|
|
||
| sCreatureTextMgr->SendChat(lifei, Li_Fei_Talk_0, player); |
There was a problem hiding this comment.
this is bad, we use Creature::Talk
|
|
||
| _playerGuid.Clear(); | ||
| _playerGuid = summoner->ToPlayer()->GetGUID(); | ||
| me->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_IMMUNE_TO_PC); |
|
|
||
| void IsSummonedBy(WorldObject* summoner) override | ||
| { | ||
| if (me->GetAreaId() != 5849) |
| { | ||
| float distance = 4.0f; | ||
| float orientation = GetCaster()->GetVictim()->GetOrientation(); | ||
| float targetX = GetCaster()->GetVictim()->GetPositionX() - distance * std::cos(orientation); |
There was a problem hiding this comment.
create a ponter to caster and pass it along
There was a problem hiding this comment.
what u mean? li-fei must tp on back of player
| player->CastSpell(player, Spells::spell_fire_crash_cove); | ||
|
|
||
| Map* map = player->GetMap(); | ||
| Creature* lifei = map->GetCreatureBySpawnId(Guids::Li_Fei_for_summon_guid); |
There was a problem hiding this comment.
StringId + FindCreatureWithOptions
| if (!lifei) | ||
| return; | ||
|
|
||
| TempSummon* lifeiClone = lifei->SummonPersonalClone(lifei->GetPosition(), TEMPSUMMON_MANUAL_DESPAWN, 0s, 0, 0, player->ToPlayer()); |
There was a problem hiding this comment.
are you sure of this? personal clones weren't a thing until WoD-Legion
There was a problem hiding this comment.
no, im not sure, but it pretty works
There was a problem hiding this comment.
Personal clones are not a thing in Mop
There was a problem hiding this comment.
Personal clones are not a thing in Mop
There was a problem hiding this comment.
ah, ok , i ll change
| -- Talks | ||
| INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES | ||
| (54135, 0, 0, 'Ты $gзаслужил:заслужила; право пройти. Хо ждет тебя.', 12, 0, 100, 0, 0, 0, 0, 0, 'Мастер Ли Фэй to Player'); |
There was a problem hiding this comment.
Missing DELETE statement and our creature_text is english only.
DB/WanderingIsle: Implement quest 29421