Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

BCNM allies and multi-phase fights #6299

Merged
merged 8 commits into from
Dec 5, 2019
Merged

BCNM allies and multi-phase fights #6299

merged 8 commits into from
Dec 5, 2019

Conversation

cocosolos
Copy link
Contributor

@cocosolos cocosolos commented Nov 23, 2019

This fixes some errors trying to spawn allies into a battlefield and updates some renamed BCNM functions.
This includes:
Prishe and Selh'teus in Dawn
Ajido-Marujido in Moon Reading
Karababa in Shield of Diplomacy
Trion in The Heir to the Light
Volker in Where Two Paths Converge

Also addressed is an issue where multi-phase fights will trigger win conditions if the target mob isn't spawned at the start.
These fights are:
Dawn
Moon Reading
The Heir to the Light
Where Two Paths Converge
One to be Feared
The Celestial Nexus #6318
Shadow Lord #6114

Fight logic wasn't checked other than spawning allies and stopping fights from ending prematurely. Only issue is client (not server) crashes if you try to cure a dead Prishe.

…called with a number or base entity object, pass ally flag.
…auto-completion of battlefield upon enter caused by Promathia 2nd form being "dead" when you enter. Fix issue with Prishe accepting raise.
…nction names. Stop auto-completion of battlefield because of phases. Unlock battlefield.
@@ -16,6 +16,9 @@ function onSpellCast(caster,target,spell)
if (target:getName() == "Prishe") then
-- CoP 8-4 Prishe
target:setLocalVar("Raise", 1)
target:entityAnimationPacket("sp00")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@teschnei wasn't that animation already being handled elsewhere when you implemented these originally?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

er, on prishe and aern's I mean , not the spell

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the few things I changed was moving this stuff from Prishe to the spell because she wasn't accepting the raise before. It was in onMobFight which wasn't getting called while she was dead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onMobFight seems like a terrible place to have it

Copy link
Member

@TeoTwawki TeoTwawki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

silence = acceptance rubbastamp

@TeoTwawki TeoTwawki merged commit 857f020 into DarkstarProject:master Dec 5, 2019
@cocosolos cocosolos deleted the bcnm_allies branch January 22, 2020 08:09
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants